Class: Pione::Command::BasicCommand
- Inherits:
-
PioneObject
- Object
- PioneObject
- Pione::Command::BasicCommand
- Extended by:
- ClassInterface, Pione::CommandOption::OptionInterface
- Includes:
- InstanceInterface
- Defined in:
- lib/pione/command/basic-command.rb
Overview
BasicCommand is a base class for PIONE commands.
Direct Known Subclasses
FrontOwnerCommand, PioneClean, PioneRelayAccountDB, PioneRelayClientDB, PioneSyntaxChecker, PioneTupleSpaceViewer
Class Method Summary collapse
- .inherited(subclass) ⇒ Object private
-
.run(*args) ⇒ Object
Runs the command.
Instance Method Summary collapse
-
#run ⇒ Object
Runs the command.
Methods included from ClassInterface
program_message, program_name, set_program_message, set_program_name
Methods included from Pione::CommandOption::OptionInterface
command_options, define_option, extended, remove_option, use_option_module
Methods included from InstanceInterface
#program_message, #program_name
Class Method Details
.inherited(subclass) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
53 54 55 56 |
# File 'lib/pione/command/basic-command.rb', line 53 def self.inherited(subclass) opts = .clone subclass.instance_eval { = opts } end |
.run(*args) ⇒ Object
Runs the command.
59 60 61 |
# File 'lib/pione/command/basic-command.rb', line 59 def self.run(*args) self.new(*args).run end |
Instance Method Details
#run ⇒ Object
Runs the command.
64 65 66 67 68 69 70 |
# File 'lib/pione/command/basic-command.rb', line 64 def run prepare $PROGRAM_NAME = program_name start end |