Skip to content

Instantly share code, notes, and snippets.

@the2hill
Created January 7, 2015 21:12
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/34040ec123fccb6def0b to your computer and use it in GitHub Desktop.
Save the2hill/34040ec123fccb6def0b to your computer and use it in GitHub Desktop.
Driver decoupled, but using taskflow inside itself
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
drivertask.execute()
def undo_update():
# undo those things we just did
class drivertask(taskflow):
def execute():
#do driver specific things with TaskFlow!
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