Skip to content

Instantly share code, notes, and snippets.

@hzbd
Forked from potix2/gist:3951125
Created April 23, 2013 17:17
Show Gist options
  • Save hzbd/5445556 to your computer and use it in GitHub Desktop.
Save hzbd/5445556 to your computer and use it in GitHub Desktop.
from fabric.api import env, task
from fabric.decorators import runs_once
env.hosts = ['host1','host2','host3']
@runs_once
def _pull():
print "pull artifacts"
@task
def deploy():
_pull()
print("deploying on %s" % env.host_string)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment