class Kontena::Plugin::Vagrant::Master::StartCommand
Public Instance Methods
execute()
click to toggle source
# File lib/kontena/plugin/vagrant/master/start_command.rb, line 5 def execute require_relative '../../../machine/vagrant' vagrant_path = "#{Dir.home}/.krates/vagrant_master" abort("Cannot find Vagrant node krates-master".colorize(:red)) unless Dir.exist?(vagrant_path) Dir.chdir(vagrant_path) do spinner "Triggering 'vagrant up' for krates-master" exit $?.exitstatus unless system('vagrant up') end end