コード例 #1
0
ファイル: repo_create_update.py プロジェクト: jdob/pulp_rpm
    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)
コード例 #2
0
ファイル: repo_create_update.py プロジェクト: jdob/pulp_rpm
    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)