Module: Kontena::Machine::Vagrant::Common
- Included in:
- MasterDestroyer, MasterProvisioner, NodeDestroyer, NodeProvisioner
- Defined in:
- lib/kontena/machine/vagrant/common.rb
Instance Method Summary collapse
Instance Method Details
#erb(template, vars) ⇒ Object
11 12 13 |
# 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) ⇒ Object
15 16 17 |
# File 'lib/kontena/machine/vagrant/common.rb', line 15 def run_command(cmd) exit $?.exitstatus unless system(cmd) end |