Skip to content

Instantly share code, notes, and snippets.

@shomah4a
Created August 11, 2012 07:10
Show Gist options
  • Save shomah4a/3321970 to your computer and use it in GitHub Desktop.
Save shomah4a/3321970 to your computer and use it in GitHub Desktop.
fabric hello
#-*- coding:utf-8 -*-
import sys
import os
import subprocess
from fabric import api
api.env.hosts = ['hostname']
def hello():
api.run('echo hello')
api.run('touch hello')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment