Sha256: 94c547f57234ef2f45a96715627826873e1135f9931743f59cfd8b5327e9a681

Contents?: true

Size: 379 Bytes

Versions: 6

Compression:

Stored size: 379 Bytes

Contents

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

6 entries across 6 versions & 1 rubygems

Version Path
jubilee-1.0.2 lib/jubilee/server.rb
jubilee-1.0.1 lib/jubilee/server.rb
jubilee-1.0.0 lib/jubilee/server.rb
jubilee-1.0.0.beta1 lib/jubilee/server.rb
jubilee-0.5.0 lib/jubilee/server.rb
jubilee-0.4.1 lib/jubilee/server.rb