Sha256: 3d7d7f1787eb16a2dfc194a8f91b83d867884487ad35389ad0f97cacfe90813e

Contents?: true

Size: 413 Bytes

Versions: 6

Compression:

Stored size: 413 Bytes

Contents

module Waves
  
  class Server < Worker
    
    def start_tasks
      @server = config.server.new( application, host, port )
      @server.start
    end
    
    def stop_tasks ; @server.stop ; end
    
    private

    def application ; @app ||= config.application.to_app ; end
    def port ; @port ||= options[:port] or config.port ; end
    def host ; @host ||= options[:host] or config.host ; end

  end

end

Version data entries

6 entries across 6 versions & 4 rubygems

Version Path
dyoder-waves-0.8.0 lib/runtime/server.rb
waves-edge-2009.03.10.13.14 lib/runtime/server.rb
waves-stable-2009.3.10 lib/runtime/server.rb
waves-0.8.0 lib/runtime/server.rb
waves-0.8.1 lib/runtime/server.rb
waves-0.8.2 lib/runtime/server.rb