Sha256: 4d085241e4e2c61ef23e84c96dfcf3a877f2f1363ef1b74283d38516757e7c69
Contents?: true
Size: 632 Bytes
Versions: 2
Compression:
Stored size: 632 Bytes
Contents
module Kontena::Cli::Master::Vagrant class StartCommand < Clamp::Command include Kontena::Cli::Common def execute require 'kontena/machine/vagrant' vagrant_path = "#{Dir.home}/.kontena/vagrant_master" abort("Cannot find Vagrant node #{name}".colorize(:red)) unless Dir.exist?(vagrant_path) Dir.chdir(vagrant_path) do ShellSpinner "Starting Vagrant machine #{name.colorize(:cyan)} " do Open3.popen2('vagrant up') do |stdin, output, wait| while o = output.gets print o if ENV['DEBUG'] end end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kontena-cli-0.9.1 | lib/kontena/cli/master/vagrant/start_command.rb |
kontena-cli-0.9.0 | lib/kontena/cli/master/vagrant/start_command.rb |