Class: Specinfra::Command::Linux::Base::Bond
- Inherits:
-
Base::Bond
- Object
- Base
- Base::Bond
- Specinfra::Command::Linux::Base::Bond
- Defined in:
- lib/specinfra/command/linux/base/bond.rb
Class Method Summary collapse
Methods inherited from Base
Class Method Details
.check_exists(name) ⇒ Object
3 4 5 |
# File 'lib/specinfra/command/linux/base/bond.rb', line 3 def check_exists(name) "ip link show #{name}" end |
.check_has_interface(name, interface) ⇒ Object
7 8 9 |
# File 'lib/specinfra/command/linux/base/bond.rb', line 7 def check_has_interface(name, interface) "grep -o 'Slave Interface: #{interface}' /proc/net/bonding/#{name}" end |