Пример #1
0
def pre_run_hook(app):
    if app.pargs.debug:
        io.echo('-- EBCLI Version:', __version__)
        io.echo('-- Python Version:', sys.version)

    if app.pargs.verbose:
        LoggingLogHandler.set_level(app.log, 'INFO')
    set_profile(app.pargs.profile)
    set_ssl(app.pargs.no_verify_ssl)
Пример #2
0
def pre_run_hook(app):
    if app.pargs.debug:
        io.echo('-- EBCLI Version:', __version__)
        io.echo('-- Python Version:', sys.version)

    if app.pargs.verbose:
        LoggingLogHandler.set_level(app.log, 'INFO')
    set_profile(app.pargs.profile)
    set_region(app.pargs.region)
    set_endpoint(app.pargs.endpoint_url)
    set_ssl(app.pargs.no_verify_ssl)
    set_debugboto(app.pargs.debugboto)
Пример #3
0
def pre_run_hook(app):
    if app.pargs.verbose:
        LoggingLogHandler.set_level(app.log, 'INFO')

    LOG.debug('-- EBCLI Version: {}'.format(__version__))
    LOG.debug('-- Python Version: {}'.format(sys.version))

    set_profile(app.pargs.profile)
    set_region(app.pargs.region)
    set_endpoint(app.pargs.endpoint_url)
    set_ssl(app.pargs.no_verify_ssl)
    set_debugboto(app.pargs.debugboto)
Пример #4
0
    def default(self):
        """
        This command will be shared within all controllers that sub-class
        from here.  It can also be overridden in the sub-class

        """
        if self.app.pargs.debug:
            io.echo('-- EBCLI Version:', __version__)
            io.echo('-- Python Version:', sys.version)

        if self.app.pargs.verbose:
            LoggingLogHandler.set_level(self.app.log, 'INFO')
        self.set_profile()
        self.do_command()