Sha256: 81eabe44579acc49bc173244e69ef8dbd29729100807f25850bf4d0729000c12

Contents?: true

Size: 455 Bytes

Versions: 3

Compression:

Stored size: 455 Bytes

Contents

module Jubilee
  class Server < PlatformManager
    def initialize(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
      super(options)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jubilee-3.0.0.beta2-java lib/jubilee/server.rb
jubilee-2.1.0.rc1-java lib/jubilee/server.rb
jubilee-2.1.0.beta-java lib/jubilee/server.rb