Module: HammerCLIForeman::User::CommonUpdateOptions
- Included in:
- CreateCommand, UpdateCommand
- Defined in:
- lib/hammer_cli_foreman/user.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
55 56 57 58 59 60 |
# File 'lib/hammer_cli_foreman/user.rb', line 55 def self.included(base) base.option '--default-organization', 'DEFAULT_ORGANIZATION_NAME', _("Default organization name") base.option '--default-location', 'DEFAULT_LOCATION_NAME', _("Default location name") base.option "--ask-password", "ASK_PW", " ", :format => HammerCLI::Options::Normalizers::Bool.new end |
Instance Method Details
#option_sources ⇒ Object
62 63 64 65 66 |
# File 'lib/hammer_cli_foreman/user.rb', line 62 def option_sources sources = super sources << HammerCLIForeman::OptionSources::UserParams.new(self) sources end |