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"
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"
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'
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'
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'
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'