Class: Waves::Server
- Includes:
- Runtime
- Defined in:
- lib/waves/runtime/server.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Server
constructor
A new instance of Server.
- #start_tasks ⇒ Object
- #stop_tasks ⇒ Object
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( = {} ) require 'ruby-debug' if [:debugger] super( ) load # load the runtime end |
Instance Method Details
#start_tasks ⇒ Object
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_tasks ⇒ Object
18 |
# File 'lib/waves/runtime/server.rb', line 18 def stop_tasks() ; @server.stop ; end |