Sha256: 0aaa4be9f425df04c30b31680908bf5aefe3aba50991ba7ebcc6f3715a224142
Contents?: true
Size: 1.36 KB
Versions: 11
Compression:
Stored size: 1.36 KB
Contents
require 'hammer_cli' require 'hammer_cli_foreman/smart_class_parameter' module HammerCLIForeman class Environment < HammerCLIForeman::Command resource :environments class ListCommand < HammerCLIForeman::ListCommand output do field :id, _("Id") field :name, _("Name") end build_options end class InfoCommand < HammerCLIForeman::InfoCommand output ListCommand.output_definition do HammerCLIForeman::References.puppetclasses(self) HammerCLIForeman::References.taxonomies(self) HammerCLIForeman::References.timestamps(self) end build_options end class CreateCommand < HammerCLIForeman::CreateCommand success_message _("Environment created.") failure_message _("Could not create the environment") build_options end class UpdateCommand < HammerCLIForeman::UpdateCommand success_message _("Environment updated.") failure_message _("Could not update the environment") build_options end class DeleteCommand < HammerCLIForeman::DeleteCommand success_message _("Environment deleted.") failure_message _("Could not delete the environment") build_options end class SCParamsCommand < HammerCLIForeman::SmartClassParametersList build_options_for :environments end autoload_subcommands end end
Version data entries
11 entries across 11 versions & 1 rubygems