Skip to content

Instantly share code, notes, and snippets.

@vikas17a
Created July 22, 2015 06:13
Show Gist options
  • Save vikas17a/8e6e309b5033cddb9f31 to your computer and use it in GitHub Desktop.
Save vikas17a/8e6e309b5033cddb9f31 to your computer and use it in GitHub Desktop.
Testing fabric with python
#!/usr/bin/env python
from fabric.api import *
def uptime():
local('uptime')
def remote_add():
local('git init')
local('git remote add origin https://github.com/vikas17a/testfab.git')
local('git pull origin master')
def push():
local('git add .')
local("git commit -m 'testing'")
local('git push origin master')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment