Esempio n. 1
0
 def __init__(self, context):
     UpdateRepositoryCommand.__init__(self, context)
     ImporterConfigMixin.__init__(self, **IMPORTER_CONFIGURATION_FLAGS)
     self.add_option(OPT_AUTO_PUBLISH)
     self.add_option(OPT_BRANCH)
     self.add_option(OPT_GPG_KEY)
     self.options_bundle.opt_feed.description = DESC_FEED
Esempio n. 2
0
    def __init__(self, context):
        CreateRepositoryCommand.__init__(self, context)
        ImporterConfigMixin.__init__(self, include_unit_policy=False)

        self.add_option(OPTION_QUERIES)
        self.add_option(OPTION_QUERY)
        self.add_option(OPTION_HTTP)
        self.add_option(OPTION_HTTPS)
Esempio n. 3
0
    def __init__(self, context):
        CreateRepositoryCommand.__init__(self, context)
        ImporterConfigMixin.__init__(self, include_unit_policy=False)

        self.add_option(OPTION_QUERIES)
        self.add_option(OPTION_QUERY)
        self.add_option(OPTION_HTTP)
        self.add_option(OPTION_HTTPS)
Esempio n. 4
0
    def __init__(self, context):
        UpdateRepositoryCommand.__init__(self, context)
        ImporterConfigMixin.__init__(self, include_unit_policy=False)

        self.add_option(OPTION_QUERIES_UPDATE)
        self.add_option(OPTION_QUERY)
        self.add_option(OPTION_HTTP)
        self.add_option(OPTION_HTTPS)
        self.add_option(OPTION_REMOVE_MISSING)
Esempio n. 5
0
    def __init__(self):
        """
        Call the __init__ methods for both of our superclasses.
        """
        # Add sync-related options to the create command
        ImporterConfigMixin.__init__(self, include_sync=True, include_ssl=True, include_proxy=True,
                                     include_throttling=True, include_unit_policy=True)

        ISODistributorConfigMixin.__init__(self)
Esempio n. 6
0
    def __init__(self, context):
        """
        Initialize the create command.

        :param context: The CLI context
        :type  context: pulp.client.extensions.core.ClientContext
        """
        CreateAndConfigureRepositoryCommand.__init__(self, context)
        ImporterConfigMixin.__init__(self, **IMPORTER_CONFIGURATION_FLAGS)
        NpmRepositoryOptions.__init__(self)
Esempio n. 7
0
 def __init__(self, context):
     CreateAndConfigureRepositoryCommand.__init__(self, context)
     ImporterConfigMixin.__init__(self, include_ssl=True, include_sync=True,
                                  include_unit_policy=False)
     self.add_option(OPT_AUTO_PUBLISH)
     self.add_option(OPT_REDIRECT_URL)
     self.add_option(OPT_PROTECTED)
     self.add_option(OPT_REPO_REGISTRY_ID)
     self.sync_group.add_option(OPT_UPSTREAM_NAME)
     self.options_bundle.opt_feed.description = DESC_FEED
Esempio n. 8
0
    def __init__(self, context):
        """
        Initialize the create command.

        :param context: The CLI context
        :type  context: pulp.client.extensions.core.ClientContext
        """
        CreateAndConfigureRepositoryCommand.__init__(self, context)
        ImporterConfigMixin.__init__(self, **IMPORTER_CONFIGURATION_FLAGS)
        PythonRepositoryOptions.__init__(self)
Esempio n. 9
0
    def __init__(self, context):
        """
        Initialize the command.

        :param context: The CLI context
        :type  context: pulp.client.extensions.core.ClientContext
        """
        UpdateRepositoryCommand.__init__(self, context)
        ImporterConfigMixin.__init__(self, **IMPORTER_CONFIGURATION_FLAGS)
        self.add_option(OPT_AUTO_PUBLISH)
        self.options_bundle.opt_feed.description = DESC_FEED
Esempio n. 10
0
 def __init__(self, context):
     CreateAndConfigureRepositoryCommand.__init__(self, context)
     ImporterConfigMixin.__init__(self,
                                  include_ssl=False,
                                  include_sync=True,
                                  include_unit_policy=False)
     self.add_option(OPT_AUTO_PUBLISH)
     self.add_option(OPT_REDIRECT_URL)
     self.add_option(OPT_PROTECTED)
     self.add_option(OPT_REPO_REGISTRY_ID)
     self.sync_group.add_option(OPT_UPSTREAM_NAME)
     self.options_bundle.opt_feed.description = DESC_FEED
Esempio n. 11
0
    def __init__(self):
        """
        Call the __init__ methods for both of our superclasses.
        """
        # Add sync-related options to the create command
        ImporterConfigMixin.__init__(self,
                                     include_sync=True,
                                     include_ssl=True,
                                     include_proxy=True,
                                     include_throttling=True,
                                     include_unit_policy=True)

        ISODistributorConfigMixin.__init__(self)
Esempio n. 12
0
    def __init__(self, context):

        # Adds things like name, description
        CreateRepositoryCommand.__init__(self, context)

        # Adds all downloader-related importer config options
        ImporterConfigMixin.__init__(self,
                                     options_bundle=RpmRepoOptionsBundle(),
                                     include_sync=True,
                                     include_ssl=True,
                                     include_proxy=True,
                                     include_throttling=True,
                                     include_unit_policy=True)

        # Adds all distributor config options
        repo_options.add_distributor_config_to_command(self)
Esempio n. 13
0
    def __init__(self, context):

        # Adds things like name, description
        CreateRepositoryCommand.__init__(self, context)

        # Adds all downloader-related importer config options
        ImporterConfigMixin.__init__(self,
                                     options_bundle=RpmRepoOptionsBundle(),
                                     include_sync=True,
                                     include_ssl=True,
                                     include_proxy=True,
                                     include_throttling=True,
                                     include_unit_policy=True)

        # Adds all distributor config options
        repo_options.add_distributor_config_to_command(self)
Esempio n. 14
0
 def parse_sync_group(self, user_input):
     config = ImporterConfigMixin.parse_sync_group(self, user_input)
     safe_parse(user_input, config, repo_options.OPT_SKIP.keyword, constants.CONFIG_SKIP)
     safe_parse(user_input, config, repo_options.OPT_REQUIRE_SIG.keyword,
                constants.CONFIG_REQUIRE_SIGNATURE)
     safe_parse(user_input, config, repo_options.OPT_ALLOWED_KEYS.keyword,
                constants.CONFIG_ALLOWED_KEYS)
     return config
Esempio n. 15
0
    def __init__(self, context):
        super(RpmRepoUpdateCommand, self).__init__(context)

        # The built-in options will be reorganized under a group to keep the
        # help text from being unwieldly. The base class will add them by
        # default, so remove them here before they are readded under a group.
        # self.options = []

        # Adds all downloader-related importer config options
        ImporterConfigMixin.__init__(self,
                                     options_bundle=RpmRepoOptionsBundle(),
                                     include_sync=True,
                                     include_ssl=True,
                                     include_proxy=True,
                                     include_throttling=True,
                                     include_unit_policy=True)

        # Adds all distributor config options
        repo_options.add_distributor_config_to_command(self)
Esempio n. 16
0
    def __init__(self, context):
        super(RpmRepoUpdateCommand, self).__init__(context)

        # The built-in options will be reorganized under a group to keep the
        # help text from being unwieldly. The base class will add them by
        # default, so remove them here before they are readded under a group.
        # self.options = []

        # Adds all downloader-related importer config options
        ImporterConfigMixin.__init__(self,
                                     options_bundle=RpmRepoOptionsBundle(),
                                     include_sync=True,
                                     include_ssl=True,
                                     include_proxy=True,
                                     include_throttling=True,
                                     include_unit_policy=True)

        # Adds all distributor config options
        repo_options.add_distributor_config_to_command(self)
Esempio n. 17
0
 def parse_sync_group(self, user_input):
     config = ImporterConfigMixin.parse_sync_group(self, user_input)
     safe_parse(user_input, config,
                self.options_bundle.opt_releases.keyword,
                CONFIG_KEY_RELEASES)
     safe_parse(user_input, config,
                self.options_bundle.opt_components.keyword,
                CONFIG_KEY_COMPONENTS)
     safe_parse(user_input, config,
                self.options_bundle.opt_architectures.keyword,
                CONFIG_KEY_ARCHITECTURES)
     safe_parse(user_input, config, repo_options.OPT_SKIP.keyword,
                CONFIG_KEY_SKIP)
     return config
Esempio n. 18
0
 def parse_sync_group(self, user_input):
     config = ImporterConfigMixin.parse_sync_group(self, user_input)
     safe_parse(user_input, config,
                self.options_bundle.opt_releases.keyword,
                CONFIG_KEY_RELEASES)
     safe_parse(user_input, config,
                self.options_bundle.opt_components.keyword,
                CONFIG_KEY_COMPONENTS)
     safe_parse(user_input, config,
                self.options_bundle.opt_architectures.keyword,
                CONFIG_KEY_ARCHITECTURES)
     safe_parse(user_input, config, repo_options.OPT_SKIP.keyword,
                CONFIG_KEY_SKIP)
     safe_parse(user_input, config,
                self.options_bundle.opt_require_signature.keyword,
                constants.CONFIG_REQUIRE_SIGNATURE)
     safe_parse(user_input, config,
                self.options_bundle.opt_allowed_keys.keyword,
                constants.CONFIG_ALLOWED_KEYS)
     return config
Esempio n. 19
0
 def parse_sync_group(self, user_input):
     config = ImporterConfigMixin.parse_sync_group(self, user_input)
     safe_parse(user_input, config, repo_options.OPT_SKIP.keyword, CONFIG_KEY_SKIP)
     return config
Esempio n. 20
0
 def __init__(self, context):
     UpdateRepositoryCommand.__init__(self, context)
     ImporterConfigMixin.__init__(self, **IMPORTER_CONFIGURATION_FLAGS)
     self.add_option(OPT_AUTO_PUBLISH)
     self.options_bundle.opt_feed.description = DESC_FEED
     self.sync_group.add_option(OPT_PACKAGE_FILE_PATH)
Esempio n. 21
0
 def __init__(self, context):
     UpdateRepositoryCommand.__init__(self, context)
     ImporterConfigMixin.__init__(self, **IMPORTER_CONFIGURATION_FLAGS)
     self.add_option(OPT_AUTO_PUBLISH)
     self.options_bundle.opt_feed.description = DESC_FEED
     self.sync_group.add_option(OPT_PACKAGE_FILE_PATH)
Esempio n. 22
0
 def parse_sync_group(self, user_input):
     config = ImporterConfigMixin.parse_sync_group(self, user_input)
     safe_parse(user_input, config, repo_options.OPT_SKIP.keyword,
                CONFIG_KEY_SKIP)
     return config