Sha256: e1b37d4fb34dd9f66ff1b11a4c5e7cfc031a92fa840aaedef6d58a2eed790dde
Contents?: true
Size: 436 Bytes
Versions: 8
Compression:
Stored size: 436 Bytes
Contents
require 'puppet/http' class Puppet::Runtime include Singleton def initialize @runtime_services = {} end private :initialize def [](name) service = @runtime_services[name] raise ArgumentError, "Unknown service #{name}" unless service if service.is_a?(Proc) @runtime_services[name] = service.call else service end end def []=(name, impl) @runtime_services[name] = impl end end
Version data entries
8 entries across 8 versions & 1 rubygems