Class: DRbQS::Command::Manage
- Defined in:
- lib/drbqs/command_line/command_manage.rb
Constant Summary collapse
- HELP_MESSAGE =
<<HELP Usage: #{@@command_name} <command> [arguments ...] Manage DRbQS server by sending messages. <command> is 'signal', 'status', 'process', or 'initialize'. #{@@command_name} signal <uri> server-exit #{@@command_name} signal <uri> node-exit-after-task <node_number> #{@@command_name} signal <uri> node-wake <node_number> #{@@command_name} signal <uri> node-sleep <node_number> #{@@command_name} status <uri> #{@@command_name} history <uri> #{@@command_name} process list #{@@command_name} process clear #{@@command_name} send string <uri> <string> #{@@command_name} send file <uri> <path> #{@@command_name} initialize HELP
Constants included from Misc
Instance Method Summary collapse
-
#initialize ⇒ Manage
constructor
A new instance of Manage.
- #parse_option(argv) ⇒ Object
Methods inherited from Base
Methods included from Argument
check_argument_size, split_arguments
Methods included from Misc
create_logger, create_uri, output_error, process_running_normally?, random_key, time_to_history_string, time_to_history_string2, uri_drbunix
Constructor Details
#initialize ⇒ Manage
Returns a new instance of Manage.
23 24 25 |
# File 'lib/drbqs/command_line/command_manage.rb', line 23 def initialize super(DRbQS::Setting::Manage, HELP_MESSAGE) end |
Instance Method Details
#parse_option(argv) ⇒ Object
27 28 29 30 31 |
# File 'lib/drbqs/command_line/command_manage.rb', line 27 def parse_option(argv) argv = option_parser_base(argv, :debug => true) do end setting.set_argument(*argv) end |