Sha256: 81d40e34dc550bd3f3bee1363e09ae02bfb3225358cf10321273ff6c0cac021c

Contents?: true

Size: 357 Bytes

Versions: 4

Compression:

Stored size: 357 Bytes

Contents

require 'rack/methodoverride'
module Jubilee
  class Server < VertxServer
    def initialize(app, opts = {})
      options = {Port: 8080, ssl: false}.merge(opts)
      if (options[:ssl]) && options[:keystore_path].nil?
          raise ArgumentError, "Please provide a keystore for ssl"
      end
      super(Application.new(app), options)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jubilee-1.1.0-java lib/jubilee/server.rb
jubilee-1.1.0.rc3 lib/jubilee/server.rb
jubilee-1.1.0.rc2 lib/jubilee/server.rb
jubilee-1.1.0.rc1 lib/jubilee/server.rb