Sha256: 1a0adf57550c9c3fab23c4a2231cd3c2143478ccfba3d5bbc2e388eaca34f03d
Contents?: true
Size: 503 Bytes
Versions: 5
Compression:
Stored size: 503 Bytes
Contents
class Puppet::Network::HTTP def self.server_class_by_type(kind) return Puppet::Network::HTTP::WEBrick if kind.to_sym == :webrick if kind.to_sym == :mongrel raise ArgumentError, "Mongrel is not installed on this platform" unless Puppet.features.mongrel? return Puppet::Network::HTTP::Mongrel end raise ArgumentError, "Unknown HTTP server name [#{kind}]" end end require 'puppet/network/http/webrick' require 'puppet/network/http/mongrel'
Version data entries
5 entries across 5 versions & 1 rubygems