Sha256: 32c7164d4176d0604941d127390a645eec53cf3f26472ecebe39c3e443789457

Contents?: true

Size: 554 Bytes

Versions: 6

Compression:

Stored size: 554 Bytes

Contents

module Puppet::Network::HTTP
    def self.server_class_by_type(kind)
        case kind.to_sym
        when :webrick
            require 'puppet/network/http/webrick'
            return Puppet::Network::HTTP::WEBrick
        when :mongrel
            raise ArgumentError, "Mongrel is not installed on this platform" unless Puppet.features.mongrel?
            require 'puppet/network/http/mongrel'
            return Puppet::Network::HTTP::Mongrel
        else
            raise ArgumentError, "Unknown HTTP server name [#{kind}]"
        end
    end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
puppet-0.25.5 lib/puppet/network/http.rb
puppet-0.25.4 lib/puppet/network/http.rb
puppet-0.25.3 lib/puppet/network/http.rb
puppet-0.25.2 lib/puppet/network/http.rb
puppet-0.25.1 lib/puppet/network/http.rb
puppet-0.25.0 lib/puppet/network/http.rb