Class: Specinfra::Command::Openbsd::Base::Bridge
- Inherits:
-
Base::Bridge
- Object
- Base
- Base::Bridge
- Specinfra::Command::Openbsd::Base::Bridge
- Defined in:
- lib/specinfra/command/openbsd/base/bridge.rb
Class Method Summary collapse
Methods inherited from Base
Class Method Details
.check_exists(name) ⇒ Object
3 4 5 |
# File 'lib/specinfra/command/openbsd/base/bridge.rb', line 3 def check_exists(name) "ifconfig #{name}" end |
.check_has_interface(name, interface) ⇒ Object
7 8 9 |
# File 'lib/specinfra/command/openbsd/base/bridge.rb', line 7 def check_has_interface(name, interface) "ifconfig #{name} | grep -o #{interface}" end |