Sha256: 852a90899efe151689043cf390a657e24fd171081c72cd3b9d14f20773a727fb
Contents?: true
Size: 723 Bytes
Versions: 15
Compression:
Stored size: 723 Bytes
Contents
module HammerCLIForeman class Settings < HammerCLIForeman::Command resource :settings class ListCommand < HammerCLIForeman::ListCommand output do field :id, _('Id'), Fields::Id field :name, _('Name') field :value, _('Value') field :description, _('Description') end def extend_data(data) data['value'] = data['value'].to_s data end build_options end class UpdateCommand < HammerCLIForeman::UpdateCommand command_name 'set' success_message _("Setting [%{name}] updated to [%{value}]") failure_message _("Could not update the setting") build_options end autoload_subcommands end end
Version data entries
15 entries across 15 versions & 1 rubygems