module Kontena::Machine::Vagrant::Common
Public Instance Methods
erb(template, vars)
click to toggle source
# File lib/kontena/machine/vagrant/common.rb, line 11 def erb(template, vars) ERB.new(template).result(OpenStruct.new(vars).instance_eval { binding }) end
run_command(cmd)
click to toggle source
# File lib/kontena/machine/vagrant/common.rb, line 15 def run_command(cmd) exit $?.exitstatus unless system(cmd) end