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

Version Path
puppet-retrospec-1.8.0 vendor/pup410/lib/puppet/util/network_device.rb
puppet-retrospec-1.7.0 vendor/pup410/lib/puppet/util/network_device.rb
puppet-4.10.12 lib/puppet/util/network_device.rb
puppet-4.10.12-x86-mingw32 lib/puppet/util/network_device.rb
puppet-4.10.12-x64-mingw32 lib/puppet/util/network_device.rb
puppet-4.10.12-universal-darwin lib/puppet/util/network_device.rb
puppet-4.10.11 lib/puppet/util/network_device.rb
puppet-4.10.11-x86-mingw32 lib/puppet/util/network_device.rb
puppet-4.10.11-x64-mingw32 lib/puppet/util/network_device.rb
puppet-4.10.11-universal-darwin lib/puppet/util/network_device.rb
puppet-4.10.10 lib/puppet/util/network_device.rb
puppet-4.10.10-x86-mingw32 lib/puppet/util/network_device.rb
puppet-4.10.10-x64-mingw32 lib/puppet/util/network_device.rb
puppet-4.10.10-universal-darwin lib/puppet/util/network_device.rb
puppet-retrospec-1.6.1 vendor/pup410/lib/puppet/util/network_device.rb
puppet-retrospec-1.6.0 vendor/pup410/lib/puppet/util/network_device.rb
puppet-4.10.9 lib/puppet/util/network_device.rb
puppet-4.10.9-x86-mingw32 lib/puppet/util/network_device.rb
puppet-4.10.9-x64-mingw32 lib/puppet/util/network_device.rb
puppet-4.10.9-universal-darwin lib/puppet/util/network_device.rb