Class: Jubilee::Server

Inherits:
VertxServer
  • Object
show all
Defined in:
lib/jubilee/server.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, opts = {}) ⇒ Server

Returns a new instance of Server.



4
5
6
7
8
9
10
# File 'lib/jubilee/server.rb', line 4

def initialize(app, opts = {})
  options = {Host: "0.0.0.0", Port: 8080, ssl: false}.merge(opts)
  if (options[:ssl]) && options[:ssl_keystore].nil?
      raise ArgumentError, "Please provide a keystore for ssl"
  end
  super(Application.new(app), options)
end