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-4.7.1-x64-mingw32 lib/puppet/util/network_device.rb
puppet-4.7.1-universal-darwin lib/puppet/util/network_device.rb
puppet-4.8.1 lib/puppet/util/network_device.rb
puppet-4.8.1-x86-mingw32 lib/puppet/util/network_device.rb
puppet-4.8.1-x64-mingw32 lib/puppet/util/network_device.rb
puppet-4.8.1-universal-darwin lib/puppet/util/network_device.rb
puppet-4.8.0 lib/puppet/util/network_device.rb
puppet-4.8.0-x86-mingw32 lib/puppet/util/network_device.rb
puppet-4.8.0-x64-mingw32 lib/puppet/util/network_device.rb
puppet-4.8.0-universal-darwin lib/puppet/util/network_device.rb
puppet-retrospec-1.2.1 vendor/gems/puppet-4.5.2/lib/puppet/util/network_device.rb
puppet-retrospec-1.2.0 vendor/gems/puppet-4.5.2/lib/puppet/util/network_device.rb
puppet-4.7.0 lib/puppet/util/network_device.rb
puppet-4.7.0-x86-mingw32 lib/puppet/util/network_device.rb
puppet-4.7.0-x64-mingw32 lib/puppet/util/network_device.rb
puppet-4.7.0-universal-darwin lib/puppet/util/network_device.rb
puppet-4.6.2 lib/puppet/util/network_device.rb
puppet-4.6.2-x86-mingw32 lib/puppet/util/network_device.rb
puppet-4.6.2-x64-mingw32 lib/puppet/util/network_device.rb
puppet-4.6.2-universal-darwin lib/puppet/util/network_device.rb