Class: VagrantBootstrap::TapBridge
- Inherits:
-
Object
- Object
- VagrantBootstrap::TapBridge
- Defined in:
- lib/vagrant_bootstrap/tap_bridge.rb
Instance Method Summary collapse
- #iface ⇒ Object
-
#initialize ⇒ TapBridge
constructor
A new instance of TapBridge.
Constructor Details
#initialize ⇒ TapBridge
Returns a new instance of TapBridge.
6 7 8 9 10 11 |
# File 'lib/vagrant_bootstrap/tap_bridge.rb', line 6 def initialize check_for_bins create_iface unless iface_exists? create_bridge unless bridge_exists? configure_bridge unless bridge_configured? end |
Instance Method Details
#iface ⇒ Object
13 14 15 |
# File 'lib/vagrant_bootstrap/tap_bridge.rb', line 13 def iface @iface ||= "tap-#{VagrantBootstrap.whoami}" end |