Exemplo n.º 1
0
    def get_command(self, api_server_url='http://localhost:8001', analysis_directory=None, extras=None):
        kwargs = {}

        if analysis_directory:
            kwargs['input-directory'] = os.path.join(analysis_directory, 'input')
            kwargs['output-directory'] = os.path.join(analysis_directory, 'output')
            kwargs['analysis-settings-file'] = os.path.join(analysis_directory, 'analysis_settings.json')

        kwargs.update(extras or {})
        kwargs_str = ' '.join('--{} {}'.format(k, v) for k, v in six.iteritems(kwargs))

        return RootCmd(argv='test model-api {} {}'.format(kwargs_str, api_server_url).split())
    def get_command(self, api_server_url='http://localhost:8001', extras=None):
        kwargs_str = ' '.join('--{} {}'.format(k, v)
                              for k, v in six.iteritems(extras or {}))

        return RootCmd(argv='test gen-model-tester-dockerfile {} {}'.format(
            kwargs_str, api_server_url).split())
Exemplo n.º 3
0
def get_command(target_dir=None, extras=None):
    kwargs_str = ' '.join('--{} {}'.format(k, v)
                          for k, v in six.iteritems(extras or {}))

    return RootCmd(
        argv='bin check {} {}'.format(kwargs_str, target_dir or '').split())