Created
July 22, 2015 06:13
-
-
Save vikas17a/8e6e309b5033cddb9f31 to your computer and use it in GitHub Desktop.
Testing fabric with python
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
#!/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