Project

General

Profile

« Previous | Next » 

Revision b99362a2

Added by David Davis about 10 years ago

Fixing commands that still reference Foreman

View differences:

boilerplate/command_template.rb
class Taco < HammerCLI::Apipie::Command
resource KatelloApi::Resources::Taco
class ListCommand < HammerCLIForeman::ListCommand
class ListCommand < HammerCLIKatello::ListCommand
output do
field :id, _("Taco ID")
field :name, _("Name")
......
apipie_options
end
class CreateCommand < HammerCLIForeman::CreateCommand
class CreateCommand < HammerCLIKatello::CreateCommand
success_message _("Taco created")
failure_message _("Could not create the taco")
apipie_options
end
class InfoCommand < HammerCLIForeman::InfoCommand
class InfoCommand < HammerCLIKatello::InfoCommand
output do
field :id, _("Taco ID")
field :name, _("Name")
......
apipie_options
end
class UpdateCommand < HammerCLIForeman::UpdateCommand
class UpdateCommand < HammerCLIKatello::UpdateCommand
success_message _("Taco updated")
failure_message _("Could not update the taco")
......
option "--meat", "MEAT", _("meat type"), :attribute_name => :option_meat
end
class DeleteCommand < HammerCLIForeman::DeleteCommand
class DeleteCommand < HammerCLIKatello::DeleteCommand
success_message _("Taco deleted")
failure_message _("Could not delete the taco")

Also available in: Unified diff