Method: Inspec::Resources::NetworkInterface#initialize
- Defined in:
- lib/resources/interface.rb
#initialize(iface) ⇒ NetworkInterface
Returns a new instance of NetworkInterface.
18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/resources/interface.rb', line 18 def initialize(iface) @iface = iface @interface_provider = nil if inspec.os.linux? @interface_provider = LinuxInterface.new(inspec) elsif inspec.os.windows? @interface_provider = WindowsInterface.new(inspec) else return skip_resource 'The `interface` resource is not supported on your OS yet.' end end |