Class: VagrantBootstrap::TapBridge

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant_bootstrap/tap_bridge.rb

Instance Method Summary collapse

Constructor Details

#initializeTapBridge

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

#ifaceObject



13
14
15
# File 'lib/vagrant_bootstrap/tap_bridge.rb', line 13

def iface
  @iface ||= "tap-#{VagrantBootstrap.whoami}"
end