Class: Pione::Command::FrontOwnerCommand
- Inherits:
-
BasicCommand
- Object
- PioneObject
- BasicCommand
- Pione::Command::FrontOwnerCommand
- Defined in:
- lib/pione/command/front-owner-command.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#create_front ⇒ BasicFront
Creates a front server.
-
#run ⇒ Object
Runs the command.
-
#setup_front ⇒ void
Setups font server.
- #terminate ⇒ Object
Methods inherited from BasicCommand
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
Instance Method Details
#create_front ⇒ BasicFront
Creates a front server. This method should be overridden in subclasses.
27 28 29 |
# File 'lib/pione/command/front-owner-command.rb', line 27 def create_front raise NotImplementedError end |
#run ⇒ Object
Runs the command.
9 10 11 12 13 14 15 16 |
# File 'lib/pione/command/front-owner-command.rb', line 9 def run setup_front prepare $PROGRAM_NAME = program_name start end |
#setup_front ⇒ void
This method returns an undefined value.
Setups font server.
20 21 22 |
# File 'lib/pione/command/front-owner-command.rb', line 20 def setup_front Global.front = create_front end |
#terminate ⇒ Object
31 32 33 34 |
# File 'lib/pione/command/front-owner-command.rb', line 31 def terminate super DRb.stop_service end |