Sha256: 0f97286d68ed9da32016a88fce50d566fdaabb78e53c0c93b156b4444acd4bfb

Contents?: true

Size: 493 Bytes

Versions: 1

Compression:

Stored size: 493 Bytes

Contents

module Jubilee
  class Server < VertxServer
    def initialize(app, opts = {})
      options = {port: 3215, ssl: false}.merge(opts)
      if (options[:ssl])
        if options[:keystore].nil?
          raise ArgumentError, "Please provide a keystore for ssl"
        else
          super(Application.new(app), options[:port], options[:ssl], options[:keystore], options[:keystore_password])
        end
      else
        super(Application.new(app), options[:port])
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jubilee-0.1.2 lib/jubilee/server.rb