Class: Exec::ServiceFollowRequest::CustomCommandOption

Inherits:
CommandOption
  • Object
show all
Defined in:
lib/exec/service_follow_request.rb

Overview

Inherited CommandOption used only by ServiceFollowRequest.

Instance Attribute Summary

Attributes inherited from CommandOption

#values

Instance Method Summary collapse

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_mandatoryObject (protected)

This method overrides the default behaviour.

Raises:



40
41
42
43
44
45
46
# File 'lib/exec/service_follow_request.rb', line 40

def check_mandatory
  if if !@values["help"] && !@values["list"]
       raise Common::MissingParameter.new("-C", get_help()) if @values["cluster"].nil?
       raise Common::MissingParameter.new("-r", get_help()) if @values["request"].nil?
     end
  end
end