Method: Inspec::Resources::Bond#initialize
- Defined in:
- lib/resources/bond.rb
#initialize(bond) ⇒ Bond
Returns a new instance of Bond.
19 20 21 22 23 24 25 26 |
# File 'lib/resources/bond.rb', line 19 def initialize(bond) @bond = bond @path = "/proc/net/bonding/#{bond}" @file = inspec.file(@path) @content = read_file_content(@path, allow_empty: true) @params = {} @loaded = false end |