Skip to content

Instantly share code, notes, and snippets.

@Alphadelta14
Created November 15, 2016 15:03
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 Alphadelta14/3b66ddaa670061d11d421bf6d14ec784 to your computer and use it in GitHub Desktop.
Save Alphadelta14/3b66ddaa670061d11d421bf6d14ec784 to your computer and use it in GitHub Desktop.
Compat Flows
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)
def main():
if product_one_env():
raise NotImplementedError('Unsupported')
elif product_two_env():
build = build_two()
deploy = deploy_two(build)
run_two(deploy, build)
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