Skip to content

Instantly share code, notes, and snippets.

@bitprophet
Forked from ampledata/gist:4114757
Created November 19, 2012 23:39
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 bitprophet/4114907 to your computer and use it in GitHub Desktop.
Save bitprophet/4114907 to your computer and use it in GitHub Desktop.
from fabric.api import parallel, execute, sudo
@parallel
def uptime():
sudo('uptime')
def do_my_stuff():
execute(uptime, hosts=['web1', 'web2'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment