Class: Exec::ServiceFollowRequest

Inherits:
ExecutableCommand show all
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

Methods inherited from ExecutableCommand

#check_parameters, #create_logger, #initialize, #run

Constructor Details

This class inherits a constructor from Exec::ExecutableCommand

Instance Method Details

#execObject (private)

Execution of the command

Raises:



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_optionsObject (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 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