Module: CLI::Start

Defined in:
lib/robot_sweatshop/cli/start.rb

Overview

Methods for starting Robot Sweatshop

Class Method Summary collapse

Class Method Details

.sweatshopObject



8
9
10
11
12
13
14
15
16
# File 'lib/robot_sweatshop/cli/start.rb', line 8

def self.sweatshop
  Config.compile_to_file
  eye_config = File.expand_path "#{__dir__}/../../../robot_sweatshop.eye"
  output = `eye load #{eye_config}`
  fail output if $?.exitstatus != 0
  Announce.success "Robot Sweatshop loaded"
  Announce.info `eye restart robot_sweatshop`
  Announce.info 'Run \'eye --help\' for more info on debugging'
end