Class: HammerCLIKatello::HostCollectionErratumCommand::InstallCommand

Inherits:
HammerCLIKatello::HostCollection::InstallContentBaseCommand show all
Defined in:
lib/hammer_cli_katello/host_collection_erratum.rb

Instance Method Summary collapse

Methods inherited from HammerCLIKatello::HostCollection::ContentBaseCommand

#request_params, #resolver

Methods included from ResolverCommons

included

Instance Method Details

#content_typeObject



28
29
30
# File 'lib/hammer_cli_katello/host_collection_erratum.rb', line 28

def content_type
  'errata'
end

#executeObject



18
19
20
21
22
23
24
25
26
# File 'lib/hammer_cli_katello/host_collection_erratum.rb', line 18

def execute
  warn "This command uses katello agent and will be removed in favor of remote execution " \
    "in a future release."
  warn "The remote execution equivalent is `hammer job-invocation create --feature " \
    "katello_errata_install`. Specify the host collection with the --search-query " \
    "parameter, e.g. `--search-query \"host_collection = MyCollection\"` or " \
    "`--search-query \"host_collection_id=6\"`."
  super
end