Class: Phobos::CLI::Start

Inherits:
Object
  • Object
show all
Defined in:
lib/phobos/cli/start.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Start

Returns a new instance of Start.



6
7
8
9
# File 'lib/phobos/cli/start.rb', line 6

def initialize(options)
  @config_file = File.expand_path(options[:config])
  @boot_file = File.expand_path(options[:boot])
end

Instance Method Details

#executeObject



11
12
13
14
15
16
17
18
# File 'lib/phobos/cli/start.rb', line 11

def execute
  validate_config_file!
  Phobos.configure(config_file)
  load_boot_file
  validate_listeners!

  Phobos::CLI::Runner.new.run!
end