sregistry/main/google_storage/build.py
def run_build(self, config):
    '''run a build, meaning inserting an instance. Retry if there is failure

       Parameters
       ==========
       config: the configuration dictionary generated by setup_build

    '''
    project = self._get_project()
    zone = self._get_zone()

    bot.custom(prefix='INSTANCE', message=config['name'], color="CYAN")
    bot.info(config['description'])

    response = self._compute_service.instances().insert(project=project,
                                                        zone=zone,
                                                        body=config).execute()

    # Direct the user to the web portal with log
    ipaddress = self._get_ipaddress(config['name'])
    bot.info('Robot Logger: http://%s' %ipaddress)
    bot.info('Allow a few minutes for web server install, beepboop!')
    return response
def run_build(self, config):
    '''run a build, meaning inserting an instance. Retry if there is failure

       Parameters
       ==========
       config: the configuration dictionary generated by setup_build

    '''
    project = self._get_project()
    zone = self._get_zone()

    bot.custom(prefix='INSTANCE', message=config['name'], color="CYAN")
    bot.info(config['description'])

    response = self._compute_service.instances().insert(project=project,
                                                        zone=zone,
                                                        body=config).execute()

    # Direct the user to the web portal with log
    ipaddress = self._get_ipaddress(config['name'])
    bot.info('Robot Logger: http://%s' %ipaddress)
    bot.info('Allow a few minutes for web server install, beepboop!')
    return response
def run_build ( self , config ) : project = self . _get_project ( ) zone = self . _get_zone ( ) bot . custom ( prefix = 'INSTANCE' , message = config [ 'name' ] , color = "CYAN" ) bot . info ( config [ 'description' ] ) response = self . _compute_service . instances ( ) . insert ( project = project , zone = zone , body = config ) . execute ( ) # Direct the user to the web portal with log ipaddress = self . _get_ipaddress ( config [ 'name' ] ) bot . info ( 'Robot Logger: http://%s' % ipaddress ) bot . info ( 'Allow a few minutes for web server install, beepboop!' ) return response
run a build, meaning inserting an instance. Retry if there is failure

       Parameters
       ==========
       config: the configuration dictionary generated by setup_build
run a build meaning inserting an instance . Retry if there is failure