Sha256: 5ae9a11ca0014eda981a3826f2ae2821f94c9e4ee32def56111aa27bdfbdd979
Contents?: true
Size: 765 Bytes
Versions: 27
Compression:
Stored size: 765 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 :full_name, _('Full 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
27 entries across 27 versions & 1 rubygems