-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add fabfile.py for automating routine tasks with fabric, see fabfile.org
- Loading branch information
Thomas Marquart
committed
Mar 7, 2011
1 parent
2a4f7a9
commit 2fd5484
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
""" | ||
This file contains a few helpers for testing, administration | ||
development and deployment. They are to be used with *fabric*, | ||
see http://fabfile.org. | ||
For setting up your VAMDC node, you need not care about this file. | ||
""" | ||
|
||
from fabric.api import * | ||
|
||
env.roledefs = {\ | ||
'balin':['balin.tmy.se'], | ||
'melkor':['melkor.astro.uu.se'], | ||
} | ||
|
||
@roles('balin','melkor') | ||
def pullall(): | ||
wdir = 'py/vamdc/' | ||
with cd(wdir): | ||
run("git pull") | ||
|
||
def cp(vamdc=False): | ||
"commit and push" | ||
local('git add -p && git commit') | ||
local('git push origin master') | ||
if vamdc: local('git push vamdc master') |