Module: HammerCLIKatello

Defined in:
lib/hammer_cli_katello.rb,
lib/hammer_cli_katello/file.rb,
lib/hammer_cli_katello/host.rb,
lib/hammer_cli_katello/i18n.rb,
lib/hammer_cli_katello/ping.rb,
lib/hammer_cli_katello/srpm.rb,
lib/hammer_cli_katello/docker.rb,
lib/hammer_cli_katello/filter.rb,
lib/hammer_cli_katello/status.rb,
lib/hammer_cli_katello/capsule.rb,
lib/hammer_cli_katello/erratum.rb,
lib/hammer_cli_katello/package.rb,
lib/hammer_cli_katello/product.rb,
lib/hammer_cli_katello/version.rb,
lib/hammer_cli_katello/commands.rb,
lib/hammer_cli_katello/host_deb.rb,
lib/hammer_cli_katello/sync_plan.rb,
lib/hammer_cli_katello/docker_tag.rb,
lib/hammer_cli_katello/repository.rb,
lib/hammer_cli_katello/deb_package.rb,
lib/hammer_cli_katello/filter_rule.rb,
lib/hammer_cli_katello/host_errata.rb,
lib/hammer_cli_katello/host_traces.rb,
lib/hammer_cli_katello/id_resolver.rb,
lib/hammer_cli_katello/content_view.rb,
lib/hammer_cli_katello/host_package.rb,
lib/hammer_cli_katello/local_helper.rb,
lib/hammer_cli_katello/organization.rb,
lib/hammer_cli_katello/subscription.rb,
lib/hammer_cli_katello/apipie_helper.rb,
lib/hammer_cli_katello/module_stream.rb,
lib/hammer_cli_katello/ostree_branch.rb,
lib/hammer_cli_katello/output/fields.rb,
lib/hammer_cli_katello/package_group.rb,
lib/hammer_cli_katello/activation_key.rb,
lib/hammer_cli_katello/content_export.rb,
lib/hammer_cli_katello/content_import.rb,
lib/hammer_cli_katello/repository_set.rb,
lib/hammer_cli_katello/docker_manifest.rb,
lib/hammer_cli_katello/host_collection.rb,
lib/hammer_cli_katello/host_extensions.rb,
lib/hammer_cli_katello/product_content.rb,
lib/hammer_cli_katello/content_override.rb,
lib/hammer_cli_katello/exception_handler.rb,
lib/hammer_cli_katello/host_subscription.rb,
lib/hammer_cli_katello/output/formatters.rb,
lib/hammer_cli_katello/content_credential.rb,
lib/hammer_cli_katello/content_view_purge.rb,
lib/hammer_cli_katello/host_package_group.rb,
lib/hammer_cli_katello/associating_commands.rb,
lib/hammer_cli_katello/content_view_version.rb,
lib/hammer_cli_katello/erratum_info_command.rb,
lib/hammer_cli_katello/hostgroup_extensions.rb,
lib/hammer_cli_katello/organization_options.rb,
lib/hammer_cli_katello/content_export_helper.rb,
lib/hammer_cli_katello/lifecycle_environment.rb,
lib/hammer_cli_katello/simple_content_access.rb,
lib/hammer_cli_katello/content_view_component.rb,
lib/hammer_cli_katello/command_extensions/ping.rb,
lib/hammer_cli_katello/content_export_complete.rb,
lib/hammer_cli_katello/host_collection_erratum.rb,
lib/hammer_cli_katello/host_collection_package.rb,
lib/hammer_cli_katello/search_options_creators.rb,
lib/hammer_cli_katello/id_name_options_validator.rb,
lib/hammer_cli_katello/content_export_incremental.rb,
lib/hammer_cli_katello/content_view_name_resolvable.rb,
lib/hammer_cli_katello/repository_scoped_to_product.rb,
lib/hammer_cli_katello/host_collection_package_group.rb,
lib/hammer_cli_katello/foreman_search_options_creators.rb,
lib/hammer_cli_katello/command_extensions/content_source.rb,
lib/hammer_cli_katello/lifecycle_environment_name_mapping.rb,
lib/hammer_cli_katello/composite_content_view_name_resolvable.rb,
lib/hammer_cli_katello/command_extensions/kickstart_repository.rb,
lib/hammer_cli_katello/command_extensions/lifecycle_environment.rb,
lib/hammer_cli_katello/command_extensions/lifecycle_environments.rb,
lib/hammer_cli_katello/option_sources/lifecycle_environment_params.rb

Overview

rubocop:disable ModuleLength

Defined Under Namespace

Modules: ApipieHelper, AssociatingCommands, Capsule, CommandExtensions, CompositeContentViewNameResolvable, ContentExportHelper, ContentOverrideBase, ContentViewComponentBase, ContentViewNameResolvable, ForemanSearchOptionsCreators, HostExtensions, HostgroupExtensions, I18n, IdNameOptionsValidator, LifecycleEnvironmentNameMapping, LocalHelper, OptionSources, OrganizationOptions, Output, ProductContentBase, QueryOrganizationOptions, RepositoryScopedToProduct, ResolverCommons, SearchOptionsCreators Classes: ActivationKeyCommand, AddAssociatedCommand, Command, ContentCredentialCommand, ContentExport, ContentExportComplete, ContentExportIncremental, ContentImport, ContentView, ContentViewComponent, ContentViewPurgeCommand, ContentViewVersion, CreateCommand, DebPackageCommand, DeleteCommand, DockerCommand, DockerManifestCommand, DockerTagCommand, ErratumCommand, ErratumInfoCommand, ExceptionHandler, FileCommand, Filter, FilterRule, HostCollection, HostCollectionErratumCommand, HostCollectionPackageCommand, HostCollectionPackageGroupCommand, HostDebPackage, HostErrata, HostPackage, HostPackageGroup, HostSubscription, HostTraces, IdResolver, InfoCommand, LifecycleEnvironmentCommand, ListCommand, ModuleStreamCommand, Organization, OstreeBranchCommand, PackageCommand, PackageGroupCommand, PingCommand, Product, RemoveAssociatedCommand, Repository, RepositorySetCommand, Searchables, SimpleContentAccess, SingleResourceCommand, SrpmCommand, StatusCommand, SubscriptionCommand, SyncPlan, UpdateCommand

Constant Summary collapse

RESOURCE_NAME_MAPPING =
{
  environment: :lifecycle_environment,
  environments: :lifecycle_environments
}.freeze
RESOURCE_ALIAS_NAME_MAPPING =
{
  environment: :lifecycle_environment,
  environments: :lifecycle_environments
}.freeze

Class Method Summary collapse

Class Method Details

.api_connectionObject



12
13
14
15
16
17
18
# File 'lib/hammer_cli_katello/commands.rb', line 12

def self.api_connection
  if HammerCLI.context[:api_connection]
    HammerCLI.context[:api_connection].get("foreman")
  else
    HammerCLI::Connection.get("foreman").api
  end
end

.exception_handler_classObject



10
11
12
# File 'lib/hammer_cli_katello.rb', line 10

def self.exception_handler_class
  HammerCLIKatello::ExceptionHandler
end

.versionObject



2
3
4
# File 'lib/hammer_cli_katello/version.rb', line 2

def self.version
  @version ||= Gem::Version.new('1.3.0')
end