Last active
February 9, 2016 02:57
-
-
Save projectweekend/305178afe821497789f0 to your computer and use it in GitHub Desktop.
A simple fabfile.py example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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