當前位置: 首頁>>代碼示例>>Python>>正文


Python importer_config.ImporterConfigMixin類代碼示例

本文整理匯總了Python中pulp.client.commands.repo.importer_config.ImporterConfigMixin的典型用法代碼示例。如果您正苦於以下問題:Python ImporterConfigMixin類的具體用法?Python ImporterConfigMixin怎麽用?Python ImporterConfigMixin使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了ImporterConfigMixin類的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: __init__

 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
開發者ID:bowlofeggs,項目名稱:pulp_ostree,代碼行數:7,代碼來源:cudl.py

示例2: __init__

    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)
開發者ID:asmacdo,項目名稱:pulp_puppet,代碼行數:8,代碼來源:cudl.py

示例3: __init__

    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)
開發者ID:asmacdo,項目名稱:pulp_rpm,代碼行數:9,代碼來源:create_update.py

示例4: __init__

    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)
開發者ID:bmbouter,項目名稱:pulp_python,代碼行數:10,代碼來源:cudl.py

示例5: __init__

 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
開發者ID:jortel,項目名稱:pulp_docker,代碼行數:10,代碼來源:cudl.py

示例6: __init__

    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)
開發者ID:jdob,項目名稱:pulp_rpm,代碼行數:16,代碼來源:repo_create_update.py

示例7: parse_sync_group

 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
開發者ID:ATIX-AG,項目名稱:pulp_rpm,代碼行數:8,代碼來源:repo_create_update.py

示例8: parse_sync_group

 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
開發者ID:asmacdo,項目名稱:pulp_rpm,代碼行數:4,代碼來源:repo_create_update.py

示例9: __init__

 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)
開發者ID:sjtindell,項目名稱:pulp_deb,代碼行數:6,代碼來源:cudl.py


注:本文中的pulp.client.commands.repo.importer_config.ImporterConfigMixin類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。