Module: HammerCLIKatello::UnsupportedKatelloAgentCommandHelper
- Included in:
- HostCollectionErratumCommand::InstallCommand, HostCollectionPackageCommand::InstallCommand, HostCollectionPackageCommand::RemoveCommand, HostCollectionPackageCommand::UpdateCommand, HostCollectionPackageGroupCommand::InstallCommand, HostCollectionPackageGroupCommand::RemoveCommand, HostCollectionPackageGroupCommand::UpdateCommand, HostErrata::ApplyCommand, HostPackage::InstallCommand, HostPackage::RemoveCommand, HostPackage::UpgradeAllCommand, HostPackage::UpgradeCommand, HostPackageGroup::InstallCommand, HostPackageGroup::RemoveCommand
- Defined in:
- lib/hammer_cli_katello/unsupported_katello_agent_command_helper.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.host_collection_help_text ⇒ Object
8 9 10 11 12 |
# File 'lib/hammer_cli_katello/unsupported_katello_agent_command_helper.rb', line 8 def self.host_collection_help_text "Specify the host collection with the --search-query " \ "parameter, e.g. `--search-query \"host_collection = MyCollection\"` or " \ "`--search-query \"host_collection_id=6\"`" end |
.included(base) ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/hammer_cli_katello/unsupported_katello_agent_command_helper.rb', line 14 def self.included(base) alternate_command = "hammer job-invocation create --feature #{base.rex_feature}" = "Use the remote execution equivalent `#{alternate_command}`." if base.name =~ /HostCollection/ = "#{} #{host_collection_help_text}" end base.desc "Not supported. #{}" base. "Not supported. #{}" base.option ["-h", "--help"], :flag, "Unsupported Operation - #{}" end |
Instance Method Details
#execute ⇒ Object
3 4 5 6 |
# File 'lib/hammer_cli_katello/unsupported_katello_agent_command_helper.rb', line 3 def execute () HammerCLI::EX_UNAVAILABLE end |