Sha256: 90bc12478f6e2c31b11dd23d8bcc3e25487ec1700c811b5e2e9945b39d2281c4
Contents?: true
Size: 511 Bytes
Versions: 232
Compression:
Stored size: 511 Bytes
Contents
class Puppet::Util::NetworkDevice class << self attr_reader :current end def self.init(device) require "puppet/util/network_device/#{device.provider}/device" @current = Puppet::Util::NetworkDevice.const_get(device.provider.capitalize).const_get(:Device).new(device.url, device.options) rescue => detail raise detail, "Can't load #{device.provider} for #{device.name}: #{detail}", detail.backtrace end # Should only be used in tests def self.teardown @current = nil end end
Version data entries
232 entries across 232 versions & 2 rubygems