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)
def production(version=None): """Sets the deployment target to production, with an optional non-default version. """ return utils.deployment_target(version=version)
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)
def production(version=None): """Sets the deployment target to production, with an optional non-default version.""" return utils.deployment_target(version=version)
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)