Exemplo n.º 1
0
 def install(self):
     path = os.path.join(self.buildout['buildout']['directory'],
                         '.bda.recipe.deployment.cfg')
     if os.path.exists(path):
         os.remove(path)
     dev_sources = Config(self.dev_sources)
     sources = dev_sources.as_dict('sources')
     Config(path, self.buildout_base, self.distserver, self.packages,
            sources, self.rc_sources, self.rc_versions, self.live_versions,
            self.env, self.sources_dir, self.register, self.rc_branch_name)()
Exemplo n.º 2
0
 def install(self):
     path = os.path.join(self.buildout["buildout"]["directory"], ".bda.recipe.deployment.cfg")
     if os.path.exists(path):
         os.remove(path)
     dev_sources = Config(self.dev_sources)
     sources = dev_sources.as_dict("sources")
     Config(
         path,
         self.buildout_base,
         self.distserver,
         self.packages,
         sources,
         self.rc_sources,
         self.rc_versions,
         self.live_versions,
         self.env,
         self.sources_dir,
         self.register,
     )()
Exemplo n.º 3
0
import os
import logging
from argparse import ArgumentParser
from bda.recipe.deployment import env
from bda.recipe.deployment.common import (
    DeploymentError,
    Config,
    PackageVersion,
    PWDManager,
    DeploymentPackage,
)

log = logging.getLogger('bda.recipe.deployment')

config = Config(env.CONFIG_PATH)

#------------------------------------------------------------------------------

epilog = 'Current configured environment: '
epilog += (config.check_env('dev') and 'DEVELOPMENT') or \
          (config.check_env('rc') and 'RELEASE CANDIDATE') or \
          'NOT SET!'

#------------------------------------------------------------------------------

deployparser = ArgumentParser(description='BDA Deployment Process',
                              epilog=epilog)
deploy_subparsers = deployparser.add_subparsers(help='commands')


def deploy():
Exemplo n.º 4
0
import os
import logging
from argparse import ArgumentParser
from bda.recipe.deployment import env
from bda.recipe.deployment.common import (
    DeploymentError,
    Config,
    PackageVersion,
    PWDManager,
    DeploymentPackage,
)

log = logging.getLogger('bda.recipe.deployment')

config = Config(env.CONFIG_PATH)

#------------------------------------------------------------------------------

epilog = 'Current configured environment: '
epilog += (config.check_env('dev') and 'DEVELOPMENT') or \
          (config.check_env('rc') and 'RELEASE CANDIDATE') or \
          'NOT SET!'

#------------------------------------------------------------------------------

deployparser = ArgumentParser(description='BDA Deployment Process',
                              epilog=epilog)
deploy_subparsers = deployparser.add_subparsers(help='commands')


def deploy():