Skip to content

Instantly share code, notes, and snippets.

@ktechmidas
Created March 30, 2017 02:07
Show Gist options
  • Save ktechmidas/44ef7dce00e2f8369bc87d3995b2e73e to your computer and use it in GitHub Desktop.
Save ktechmidas/44ef7dce00e2f8369bc87d3995b2e73e to your computer and use it in GitHub Desktop.
@click.command()
@click.option('--action',required=True)
@click.option('--platform','-p',default='test')
@click.option('--version','-v',default=0)
@click.option('--domain','-d')
@click.option('--rebuild','-r',is_flag=True)
.......
def main(action):
pdb.set_trace()
if action == 'init':
servers = internal_list_servers()
pullimages()
startnginx()
etcdinit(servers)
if action == 'ssh':
ssh_command("cat /etc/os-release")
.......
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment