Skip to content

Instantly share code, notes, and snippets.

@harlowja
Created May 26, 2016 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harlowja/953128db5c98dfa02684b524fdafbd7f to your computer and use it in GitHub Desktop.
Save harlowja/953128db5c98dfa02684b524fdafbd7f to your computer and use it in GitHub Desktop.
class Copy(object):
def __init__(self, builder):
pass
def __str__(self):
return ''
class Builder(object):
def __init__(self):
self._native_commands = []
def add_native(self, cmd):
self._native_commands.append(cmd)
return self
def to_docker(self):
return ''
d = Builder().
add_native(Copy).
add_native(Copy).
add_native(Run).
add_native...
.set_distro(Distro('centos7', 7).
add_repo().
add_repo().
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment