Skip to content

Instantly share code, notes, and snippets.

@projectweekend
Last active February 9, 2016 02:57
Show Gist options
  • Save projectweekend/305178afe821497789f0 to your computer and use it in GitHub Desktop.
Save projectweekend/305178afe821497789f0 to your computer and use it in GitHub Desktop.
A simple fabfile.py example
from fabric.api import env, sudo
env.use_ssh_config = True
env.hosts = ['raspberry_pi']
def update_upgrade():
sudo('apt-get update')
sudo('apt-get upgrade -y')
def reboot():
sudo('reboot')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment