Class: Waves::Server

Inherits:
Hive::Worker
  • Object
show all
Includes:
Runtime
Defined in:
lib/waves/runtime/server.rb

Instance Method Summary collapse

Methods included from Runtime

#config, #debug?, #load, #logger, #mode, #reload, #synchronize, #synchronize?

Constructor Details

#initialize(options = {}) ⇒ Server

Returns a new instance of Server.



7
8
9
10
11
# File 'lib/waves/runtime/server.rb', line 7

def initialize( options = {} )
  require 'ruby-debug' if options[:debugger]
  super( options )
  load # load the runtime
end

Instance Method Details

#start_tasksObject



13
14
15
16
# File 'lib/waves/runtime/server.rb', line 13

def start_tasks
  @server = config.server.new( application, host, port )
  @server.start
end

#stop_tasksObject



18
# File 'lib/waves/runtime/server.rb', line 18

def stop_tasks() ; @server.stop ; end