Skip to content

Instantly share code, notes, and snippets.

@the2hill
Created January 7, 2015 20:49
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 the2hill/0a40cbe6963d8a1097a4 to your computer and use it in GitHub Desktop.
Save the2hill/0a40cbe6963d8a1097a4 to your computer and use it in GitHub Desktop.
class driverInterface()
def update():
# do update things
def undo_update():
# undo those things we just did
class driver():
def update():
# do update things like build configs and call API
def undo_update():
# undo those things we just did
class controller():
class task(taskflow):
def execute():
driver.update()
def revert():
driver.undo_update()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment