コード例 #1
0
ファイル: fabfile.py プロジェクト: dupuy/pootle
def staging(new_settings={}):
    """Work on the staging environment"""

    try:
        from deploy.staging import fabric
    except ImportError:
        abort("Can't load 'staging' environment; is PYTHONPATH exported?")

    env.update(fabric.get_settings(new_settings))
    env.environment = "staging"
コード例 #2
0
ファイル: fabfile.py プロジェクト: dupuy/pootle
def production(new_settings={}):
    """Work on the production environment"""

    try:
        from deploy.production import fabric
    except ImportError:
        abort("Can't load 'production' environment; is PYTHONPATH exported?")

    env.update(fabric.get_settings(new_settings))
    env.environment = "production"
コード例 #3
0
def staging(new_settings={}):
    """Work on the staging environment"""

    try:
        from deploy.staging import fabric
    except ImportError:
        abort("Can't load 'staging' environment; is PYTHONPATH exported?")

    env.update(fabric.get_settings(new_settings))
    env.environment = 'staging'
コード例 #4
0
def production(new_settings={}):
    """Work on the production environment"""

    try:
        from deploy.production import fabric
    except ImportError:
        abort("Can't load 'production' environment; is PYTHONPATH exported?")

    env.update(fabric.get_settings(new_settings))
    env.environment = 'production'
コード例 #5
0
ファイル: fabfile.py プロジェクト: Chipcius/pootle
def staging(branch=None, repo=None, feature=None):
    """Work on the staging environment"""

    try:
        from deploy.staging import fabric
    except ImportError:
        abort("Can't load 'staging' environment; is PYTHONPATH exported?")

    # Get new settings based on the provided parameters.
    new_settings = _get_new_settings(branch, repo, feature)

    env.update(fabric.get_settings(new_settings))
    env.environment = 'staging'
コード例 #6
0
def staging(branch=None, repo=None, feature=None):
    """Work on the staging environment."""

    try:
        from deploy.staging import fabric
    except ImportError:
        abort("Can't load 'staging' environment; is PYTHONPATH exported?")

    # Get new settings based on the provided parameters.
    new_settings = _get_new_settings(branch, repo, feature)

    env.update(fabric.get_settings(new_settings))
    env.environment = 'staging'