Module: Vigil::Vagrant

Defined in:
lib/vigil/vagrant.rb

Class Method Summary collapse

Class Method Details

.run(cmd) ⇒ Object



4
5
6
# File 'lib/vigil/vagrant.rb', line 4

def self.run(cmd)
  Vigil.os._system "vagrant #{cmd}"
end

.use(box) ⇒ Object



8
9
10
# File 'lib/vigil/vagrant.rb', line 8

def self.use(box)
  Vigil.os._system %Q{ruby -pi -e 'sub(/(config.vm.box = )"[^"]+"/, "\\\\1\\"#{box}\\"")' Vagrantfile}
end