Skip to content

Instantly share code, notes, and snippets.

@wraithan
Forked from bingomanatee/fabfile.py
Created September 14, 2011 21:59
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 wraithan/1217923 to your computer and use it in GitHub Desktop.
Save wraithan/1217923 to your computer and use it in GitHub Desktop.
def live():
env.hosts = api_call_that_gives_me_the_urls_to_the_hosts()
def agi_deploy():
command = fab_lib.get_agi_status_for_asterisk_server()
print'running ', command, 'on hosts: ',ast_hostnames_as_tyger
print run(command, True)
"""
fab live agi_deploy
will run agi_deploy for each host in env.hosts set in the live task
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment