Skip to content

Instantly share code, notes, and snippets.

@dmnobunaga
Created September 30, 2015 16:44
Show Gist options
  • Save dmnobunaga/ff4fc6ea8fb55891553a to your computer and use it in GitHub Desktop.
Save dmnobunaga/ff4fc6ea8fb55891553a to your computer and use it in GitHub Desktop.
Test fabric
from fabric.api import *
env.user = 'root'
env.password = 'password'
env.hosts = ['8.8.8.8']
@task
def test_ls():
sudo('ls -a')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment