Ejemplo n.º 1
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"
Ejemplo n.º 2
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"
Ejemplo n.º 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'
Ejemplo n.º 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'
Ejemplo n.º 5
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'
Ejemplo n.º 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'