Module: Scales::Monitor

Defined in:
lib/scales-monitor.rb,
lib/scales-monitor/base.rb,
lib/scales-monitor/monitor.rb,
lib/scales-monitor/version.rb,
lib/scales-monitor/web_socket.rb

Defined Under Namespace

Modules: Monitor Classes: WebSocket

Constant Summary collapse

PUBLIC_APP_DIR =
File.expand_path("../app/public", __FILE__)
VERSION =
"0.0.4"

Class Method Summary collapse

Class Method Details

.run!Object



5
6
7
8
9
10
11
12
13
# File 'lib/scales-monitor/base.rb', line 5

def run!
  ARGV << "--stdout" << "--environment" << "#{Scales.env}"
  
  monitor     = WebSocket.new
  runner      = Goliath::Runner.new(ARGV, monitor)
  runner.app  = Goliath::Rack::Builder.build(WebSocket, monitor)
  runner.load_plugins(WebSocket.plugins)     
  runner.run
end