Sha256: 574d2257f83d72ba690b2c67dedc525870469b388ecc2e8b20bb7ba7db0417f0

Contents?: true

Size: 399 Bytes

Versions: 3

Compression:

Stored size: 399 Bytes

Contents

require 'rack/methodoverride'
module Jubilee
  class Server < VertxServer
    def initialize(app, opts = {})
      app = Rack::MethodOverride.new(app)
      options = {Port: 3215, 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

3 entries across 3 versions & 1 rubygems

Version Path
jubilee-0.4.0 lib/jubilee/server.rb
jubilee-0.2.2 lib/jubilee/server.rb
jubilee-0.2.1 lib/jubilee/server.rb