Sha256: 1ddb3760f13ebcf885b32ea1c75959f5e09409bb36321b096a6fc04e31c80916
Contents?: true
Size: 519 Bytes
Versions: 5
Compression:
Stored size: 519 Bytes
Contents
module Kontena::Plugin::Vagrant::Master class StartCommand < Kontena::Command include Kontena::Cli::Common def execute require_relative '../../../machine/vagrant' vagrant_path = "#{Dir.home}/.kontena/vagrant_master" abort("Cannot find Vagrant node kontena-master".colorize(:red)) unless Dir.exist?(vagrant_path) Dir.chdir(vagrant_path) do spinner "Triggering 'vagrant up' for kontena-master" exit $?.exitstatus unless system('vagrant up') end end end end
Version data entries
5 entries across 5 versions & 2 rubygems