diff --git a/lib/hammer_cli_katello/host_package.rb b/lib/hammer_cli_katello/host_package.rb index 8ff1f9fd..1a5200f7 100644 --- a/lib/hammer_cli_katello/host_package.rb +++ b/lib/hammer_cli_katello/host_package.rb @@ -52,6 +52,19 @@ def self.rex_feature include UnsupportedKatelloAgentCommandHelper end + class ContainerfileInstallCommand < HammerCLIKatello::Command + desc _("Generate a Containerfile RUN command from transiently installed packages on image mode hosts") + resource :host_packages, :containerfile_install_command + command_name "containerfile-install-command" + + output do + field :command, nil, Fields::Field, :hide_blank => true + field :message, _("Message"), Fields::Field, :hide_blank => true + end + + build_options + end + autoload_subcommands end end