Advertisement
Guest User

Untitled

a guest
May 26th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1.  
  2. class Copy(object):
  3. def __init__(self, builder):
  4. pass
  5.  
  6. def __str__(self):
  7. return ''
  8.  
  9. class Builder(object):
  10. def __init__(self):
  11. self._native_commands = []
  12.  
  13. def add_native(self, cmd):
  14. self._native_commands.append(cmd)
  15. return self
  16.  
  17.  
  18.  
  19. def to_docker(self):
  20. return ''
  21.  
  22.  
  23. d = Builder().
  24. add_native(Copy).
  25. add_native(Copy).
  26. add_native(Run).
  27. add_native...
  28. .set_distro(Distro('centos7', 7).
  29. add_repo().
  30. add_repo().
  31. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement