Revision ea02286d
Added by David Davis about 10 years ago
lib/hammer_cli_katello/content_view_puppet_module.rb | ||
---|---|---|
|
||
class ListCommand < HammerCLIKatello::ListCommand
|
||
output do
|
||
field :id, "ID"
|
||
field :uuid, "UUID"
|
||
field :name, "Name"
|
||
field :author, "Author"
|
||
field :id, _("ID")
|
||
field :uuid, _("UUID")
|
||
field :name, _("Name")
|
||
field :author, _("Author")
|
||
end
|
||
|
||
apipie_options
|
||
... | ... | |
|
||
class InfoCommand < HammerCLIKatello::InfoCommand
|
||
output do
|
||
field :id, "ID"
|
||
field :uuid, "UUID", Fields::Field, :hide_blank => true
|
||
field :name, "Name"
|
||
field :author, "Author"
|
||
field :created_at, "Created", Fields::Date
|
||
field :updated_at, "Updated", Fields::Date
|
||
field :id, _("ID")
|
||
field :uuid, _("UUID"), Fields::Field, :hide_blank => true
|
||
field :name, _("Name")
|
||
field :author, _("Author")
|
||
field :created_at, _("Created"), Fields::Date
|
||
field :updated_at, _("Updated"), Fields::Date
|
||
end
|
||
|
||
def request_params
|
||
... | ... | |
action :create
|
||
command_name "add"
|
||
|
||
success_message "Puppet module added to content view"
|
||
failure_message "Could not add the puppet module"
|
||
success_message _("Puppet module added to content view")
|
||
failure_message _("Could not add the puppet module")
|
||
|
||
apipie_options
|
||
end
|
||
|
||
class UpdateCommand < HammerCLIKatello::UpdateCommand
|
||
success_message "Puppet module updated for content view"
|
||
failure_message "Could not update the puppet module"
|
||
success_message _("Puppet module updated for content view")
|
||
failure_message _("Could not update the puppet module")
|
||
|
||
def request_params
|
||
super.merge(method_options)
|
||
... | ... | |
action :destroy
|
||
command_name "remove"
|
||
|
||
success_message "Puppet module removed from content view"
|
||
failure_message "Could not delete the filter"
|
||
success_message _("Puppet module removed from content view")
|
||
failure_message _("Could not delete the filter")
|
||
|
||
def request_params
|
||
super.merge(method_options)
|
Also available in: Unified diff
Adding i18n to content view files