Sha256: 14265686fd3de99fd1aa7cd0a2cb622b901036d3446d177b2c1e6f227da74e25

Contents?: true

Size: 579 Bytes

Versions: 3

Compression:

Stored size: 579 Bytes

Contents

module Jubilee
  class Server < PlatformManager
    def initialize(app, opts = {})
      options = {Host: "0.0.0.0", Port: 8080, ssl: false, instances: 1, environment: "development", quiet: true}.merge(opts)
      if (options[:ssl]) && options[:ssl_keystore].nil?
          raise ArgumentError, "Please provide a keystore for ssl"
      end
      # Rackup passes a string value
      options[:Port] = options[:Port].to_i
      # back compatible
      if app
        options[:rackapp] = Application.new(app)
      end
      super(options)
    end

    def start
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jubilee-2.0.0-java lib/jubilee/server.rb
jubilee-2.0.0.beta-java lib/jubilee/server.rb
jubilee-2.0.0.alpha1-java lib/jubilee/server.rb