本文整理匯總了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
示例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)
示例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)
示例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)
示例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
示例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)
示例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
示例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
示例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)