Method: #launch
- Defined in:
- lib/easel.rb
#launch ⇒ Object
launch
Launches the Easel Dashboard. Check the $config variable for defaults, although everything can be overridden by the YAML file (and some by the command line arguments).
22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/easel.rb', line 22 def launch parse_ARGV # Load the provided YAML overwrite_config $config[:yaml_file] log_info("YAML loaded successfully (from: #{$config[:yaml_file]})") $config[:commands].each_with_index{ |cmd, i| cmd[:id] = i } # Give commands an ID. $config.freeze # Set config to read only # Lauch the server log_info("Launching server at #{$config[:hostname]}:#{$config[:port]}") launch_server end |