Created
November 15, 2016 15:03
-
-
Save Alphadelta14/3b66ddaa670061d11d421bf6d14ec784 to your computer and use it in GitHub Desktop.
Compat Flows
This file contains hidden or 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
def main(): | |
if product_one_env(): | |
build = build_one() | |
deploy = deploy_one(build) | |
run_one(deploy, build) | |
elif product_two_env(): | |
build = build_two() | |
deploy = deploy_two(build) | |
run_two(deploy, build) |
This file contains hidden or 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
def main(): | |
if product_one_env(): | |
raise NotImplementedError('Unsupported') | |
elif product_two_env(): | |
build = build_two() | |
deploy = deploy_two(build) | |
run_two(deploy, build) |
This file contains hidden or 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
def main(): | |
product = get_env() | |
build = build_generic(product) | |
deploy = deploy_generic(product, build) | |
run_generic(product, deploy, build) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment