Class: Exec::ServiceFollowRequest
- Inherits:
-
ExecutableCommand
- Object
- ExecutableCommand
- Exec::ServiceFollowRequest
- Defined in:
- lib/exec/service_follow_request.rb
Overview
Allows the user to follow the completion of a request.
Defined Under Namespace
Classes: CustomCommandOption
Instance Attribute Summary
Attributes inherited from ExecutableCommand
#argv, #command_name, #logger, #options, #stderr, #stdin, #stdout, #values
Instance Method Summary collapse
-
#exec ⇒ Object
private
Execution of the command.
-
#set_options ⇒ Object
private
Parse and check the parameters of the function.
Methods inherited from ExecutableCommand
#check_parameters, #create_logger, #initialize, #run
Constructor Details
This class inherits a constructor from Exec::ExecutableCommand
Instance Method Details
#exec ⇒ Object (private)
Execution of the command
28 29 30 31 |
# File 'lib/exec/service_follow_request.rb', line 28 def exec Color::print_log("NONE", "following request...", @stdout) raise NotImplemented # @todo Implement ServiceFollowRequest Exec body end |
#set_options ⇒ Object (private)
Parse and check the parameters of the function.
19 20 21 22 23 24 |
# File 'lib/exec/service_follow_request.rb', line 19 def @logger.info("setting options") .add_option("C", "cluster", "The virtual cluster name.", true, true, method(:check_cluster_name)) .add_option("r", "request", "The request ID.", true, true, method(:check_request_id)) .add_option("l", "list", "List all requests.", false) end |