Sha256: 241b617e347c99242c47e9f35d046ff0d233c4be197925ee8f1015dc34ddbfb7

Contents?: true

Size: 606 Bytes

Versions: 18

Compression:

Stored size: 606 Bytes

Contents

$: << 'lib'
ENV['RACK_ENV'] = 'development'

require 'rubygems'
require 'bundler/setup'
require 'active_support/all'
require 'khronos'

#controller = Khronos::Controller.new
#controller.start!

case ARGV[0]
when 'runner'
  puts "Running: Runner."

  require 'khronos/server/runner'
  EventMachine.run {
    EventMachine.start_server Khronos::Config.instance.runner['host'], Khronos::Config.instance.runner['port'], Khronos::Server::Runner
  }

when 'scheduler'
  puts "Running: Scheduler."
  run Khronos::Server::Scheduler

when 'controller'
  controller = Khronos::Controller.new
  controller.start!

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
khronos-0.1.4 server.rb
khronos-0.1.3 server.rb
khronos-0.1.2 server.rb
khronos-0.1.1 server.rb
khronos-0.1.0 server.rb
khronos-0.0.3.pre4 server.rb
khronos-0.0.3.pre3 server.rb
khronos-0.0.3.pre2 server.rb
khronos-0.0.3.pre1 server.rb
khronos-0.0.2 server.rb
khronos-0.0.2.pre1 server.rb
khronos-0.0.1.pre6 server.rb
khronos-0.0.1.pre5 server.rb
khronos-0.0.1.pre4 server.rb
khronos-0.0.1.pre3 server.rb
khronos-0.0.1.pre2 server.rb
khronos-0.0.1.pre1 server.rb
khronos-0.0.1 server.rb