Created
October 9, 2012 00:44
-
-
Save JCallicoat/3855876 to your computer and use it in GitHub Desktop.
fabric + sh??? winning!
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 sh import ls | |
from fabric.api import run, env | |
env.hosts = ['localhost', 'rightfootin.info'] | |
def test(): | |
print(ls('/')) # runs on every item in env.hosts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nerp. I'm retarded. that totally doesn't work.