Module: VagrantBootstrap

Defined in:
lib/vagrant_bootstrap.rb,
lib/vagrant_bootstrap/version.rb,
lib/vagrant_bootstrap/bootstrap.rb,
lib/vagrant_bootstrap/tap_bridge.rb,
lib/vagrant_bootstrap/action/destroy.rb,
lib/vagrant_bootstrap/commands/bootstrap.rb

Defined Under Namespace

Modules: Action, Commands Classes: Bootstrap, TapBridge

Constant Summary collapse

VERSION =
"0.2.4"

Class Method Summary collapse

Class Method Details

.vm_name(name = nil) ⇒ Object



6
7
8
9
# File 'lib/vagrant_bootstrap.rb', line 6

def vm_name(name=nil)
  name = "-#{name}" if name
  "vagrant-#{`whoami`.strip}#{name}"
end

.whoamiObject



11
12
13
# File 'lib/vagrant_bootstrap.rb', line 11

def whoami
  @@whoami ||= `whoami`.strip
end