Created
September 30, 2015 16:44
-
-
Save dmnobunaga/ff4fc6ea8fb55891553a to your computer and use it in GitHub Desktop.
Test fabric
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.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