Method: Exec::ServiceFollowRequest#set_options

Defined in:
lib/exec/service_follow_request.rb

#set_optionsObject (private)

Parse and check the parameters of the function.

Author:

  • tmarmin



19
20
21
22
23
24
# File 'lib/exec/service_follow_request.rb', line 19

def set_options
  @logger.info("setting options")
  @options.add_option("C", "cluster", "The virtual cluster name.", true, true, method(:check_cluster_name))
  @options.add_option("r", "request", "The request ID.", true, true, method(:check_request_id))
  @options.add_option("l", "list", "List all requests.", false)
end