コード例 #1
0
ファイル: targets.py プロジェクト: mccutchen/gaefab
def staging(version=None):
    """Sets the deployment target to staging, with an optional non-default
    version.
    """
    version = 'staging' if version is None else 'staging-' + version
    return utils.deployment_target(version=version)
コード例 #2
0
ファイル: targets.py プロジェクト: mccutchen/gaefab
def production(version=None):
    """Sets the deployment target to production, with an optional non-default
    version.
    """
    return utils.deployment_target(version=version)
コード例 #3
0
ファイル: __init__.py プロジェクト: casidos/pickem
def staging(version=None):
    """Sets the deployment target to staging, with an optional non-default
    version."""
    version = 'staging' + ('-%s' % version if version else '')
    return utils.deployment_target(version=version)
コード例 #4
0
ファイル: __init__.py プロジェクト: casidos/pickem
def production(version=None):
    """Sets the deployment target to production, with an optional non-default
    version."""
    return utils.deployment_target(version=version)
コード例 #5
0
ファイル: __init__.py プロジェクト: pombredanne/wongthesis
def staging(version=None):
    """Sets the deployment target to staging, with an optional non-default
	version."""
    env.gae.application = "%s-staging" % env.gae.application
    return utils.deployment_target(version=version)