Example #1
0
 def wrapped_f(*args):
     f(*args)
     apply_settings(file, group)
Example #2
0
    out = run('ls -a | grep svn').strip()
    if out == '.svn':
        return True
    return False


########NEW FILE########
__FILENAME__ = fabfile - git
from djangofab.api import *
from django.conf import settings
from djangofab.vcs.git import update_remote, update_local, push, commit, add
env.capture_default = False

# apply the settings from fab.cfg default section
# sets DJANGO_SETTINGS which allows access to django.conf.settings values
apply_settings()


#use the default section of fab.cfg
@user_settings()
def prod():
    "Production settings"
    env.hosts = ['server1']
    env.path = '%(prod_path)s'
    env.giturl = '%(giturl)s'
    env.site_user = '******'
    env.site_group = 'group'


@user_settings()
def dev():