Class: Puppet::Util::NetworkDevice::Cudawaf::Device
- Inherits:
-
Object
- Object
- Puppet::Util::NetworkDevice::Cudawaf::Device
- Defined in:
- lib/puppet/util/network_device/cudawaf/device.rb
Instance Attribute Summary collapse
-
#transport ⇒ Object
Returns the value of attribute transport.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
- #facts ⇒ Object
-
#initialize(url, options = {}) ⇒ Device
constructor
A new instance of Device.
Constructor Details
#initialize(url, options = {}) ⇒ Device
Returns a new instance of Device.
15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/puppet/util/network_device/cudawaf/device.rb', line 15 def initialize(url, = {}) @url = URI.parse(url) @autoloader = Puppet::Util::Autoload.new( self, "puppet/util/network_device/transport" ) if @autoloader.load("cudawaf") @transport = Puppet::Util::NetworkDevice::Transport::Cudawaf.new(url, [:debug]) Puppet.debug(self.class.to_s.split("::").last + ": Inside Device Initialize") end end |
Instance Attribute Details
#transport ⇒ Object
Returns the value of attribute transport.
13 14 15 |
# File 'lib/puppet/util/network_device/cudawaf/device.rb', line 13 def transport @transport end |
#url ⇒ Object
Returns the value of attribute url.
13 14 15 |
# File 'lib/puppet/util/network_device/cudawaf/device.rb', line 13 def url @url end |
Instance Method Details
#facts ⇒ Object
28 29 30 31 32 33 |
# File 'lib/puppet/util/network_device/cudawaf/device.rb', line 28 def facts Puppet.debug(self.class.to_s.split("::").last + ": Inside Device FACTS Initialize") @facts ||= Puppet::Util::NetworkDevice::Cudawaf::Facts.new(@transport, @url) return @facts.retrieve(@url) end |