Class: Exec::ServiceLs::CustomCommandOption
- Inherits:
-
CommandOption
- Object
- CommandOption
- Exec::ServiceLs::CustomCommandOption
- Defined in:
- lib/exec/service_ls.rb
Overview
Inherited CommandOption used only by ServiceLs.
Instance Attribute Summary
Attributes inherited from CommandOption
Instance Method Summary collapse
-
#check_mandatory ⇒ Object
protected
This method overrides the default behaviour.
Methods inherited from CommandOption
#add_option, #get_banner, #get_help, #get_sorted_options, #has_argument, #initialize, #initialize_option_values, #verify
Constructor Details
This class inherits a constructor from Exec::CommandOption
Instance Method Details
#check_mandatory ⇒ Object (protected)
This method overrides the default behaviour.
118 119 120 |
# File 'lib/exec/service_ls.rb', line 118 def check_mandatory raise Common::MissingParameter.new("-C", get_help()) if !@values["help"] && !@values["all"] && @values["cluster"].nil? end |