Class: Phobos::CLI::Start
- Inherits:
-
Object
- Object
- Phobos::CLI::Start
- Defined in:
- lib/phobos/cli/start.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(options) ⇒ Start
constructor
A new instance of Start.
Constructor Details
#initialize(options) ⇒ Start
Returns a new instance of Start.
8 9 10 11 12 13 |
# File 'lib/phobos/cli/start.rb', line 8 def initialize() @config_file = File.([:config]) unless [:skip_config] @boot_file = File.([:boot]) @listeners_file = File.([:listeners]) if [:listeners] end |
Instance Method Details
#execute ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/phobos/cli/start.rb', line 15 def execute load_boot_file if config_file validate_config_file! Phobos.configure(config_file) end Phobos.add_listeners(listeners_file) if listeners_file validate_listeners! Phobos::CLI::Runner.new.run! end |