Tuesday, September 14, 2010

fabric




Fabric is a Python library and command-line tool for streamlining the use of SSH for application deployment or systems administration tasks.


from fabric.api import run

def host_type():
run('uname -s')


To run this:


fab -H localhost host_type