Created
January 7, 2015 21:12
-
-
Save the2hill/34040ec123fccb6def0b to your computer and use it in GitHub Desktop.
Driver decoupled, but using taskflow inside itself
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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