Skip to content

Commit

Permalink
add fabfile.py for automating routine tasks with fabric, see fabfile.org
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Marquart committed Mar 7, 2011
1 parent 2a4f7a9 commit 2fd5484
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions fabfile.py
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')

0 comments on commit 2fd5484

Please sign in to comment.