Class: Construqt::Flavour::Ubuntu::EtcNetworkInterfaces::Entry
- Inherits:
-
Object
- Object
- Construqt::Flavour::Ubuntu::EtcNetworkInterfaces::Entry
- Defined in:
- lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb
Defined Under Namespace
Instance Method Summary collapse
- #commit ⇒ Object
- #header ⇒ Object
- #iface ⇒ Object
-
#initialize(result, iface) ⇒ Entry
constructor
A new instance of Entry.
- #lines ⇒ Object
- #name ⇒ Object
- #result ⇒ Object
- #skip_interfaces ⇒ Object
- #skip_interfaces? ⇒ Boolean
Constructor Details
#initialize(result, iface) ⇒ Entry
Returns a new instance of Entry.
324 325 326 327 328 329 330 |
# File 'lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb', line 324 def initialize(result, iface) @result = result @iface = iface @header = Header.new(self) @lines = Lines.new(self) @skip_interfaces = false end |
Instance Method Details
#commit ⇒ Object
357 358 359 |
# File 'lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb', line 357 def commit @header.commit + @lines.commit end |
#header ⇒ Object
340 341 342 |
# File 'lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb', line 340 def header @header end |
#iface ⇒ Object
320 321 322 |
# File 'lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb', line 320 def iface @iface end |
#lines ⇒ Object
344 345 346 |
# File 'lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb', line 344 def lines @lines end |
#name ⇒ Object
336 337 338 |
# File 'lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb', line 336 def name @iface.name end |
#result ⇒ Object
332 333 334 |
# File 'lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb', line 332 def result @result end |
#skip_interfaces ⇒ Object
352 353 354 355 |
# File 'lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb', line 352 def skip_interfaces @skip_interfaces = true self end |
#skip_interfaces? ⇒ Boolean
348 349 350 |
# File 'lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb', line 348 def skip_interfaces? @skip_interfaces end |