Sha256: fcf3b531dee037c58f8e0ab891a6fa803a4e26a0e5389513d7189c655f56b32f

Contents?: true

Size: 630 Bytes

Versions: 32

Compression:

Stored size: 630 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 kontena-master".colorize(:red)) unless Dir.exist?(vagrant_path)
      Dir.chdir(vagrant_path) do
        ShellSpinner "Starting Vagrant machine kontena-master " 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

32 entries across 32 versions & 1 rubygems

Version Path
kontena-cli-0.14.7 lib/kontena/cli/master/vagrant/start_command.rb
kontena-cli-0.14.6 lib/kontena/cli/master/vagrant/start_command.rb
kontena-cli-0.14.5 lib/kontena/cli/master/vagrant/start_command.rb
kontena-cli-0.14.4 lib/kontena/cli/master/vagrant/start_command.rb
kontena-cli-0.14.3 lib/kontena/cli/master/vagrant/start_command.rb
kontena-cli-0.14.2 lib/kontena/cli/master/vagrant/start_command.rb
kontena-cli-0.14.1 lib/kontena/cli/master/vagrant/start_command.rb
kontena-cli-0.14.0 lib/kontena/cli/master/vagrant/start_command.rb
kontena-cli-0.13.4 lib/kontena/cli/master/vagrant/start_command.rb
kontena-cli-0.13.3 lib/kontena/cli/master/vagrant/start_command.rb
kontena-cli-0.13.2 lib/kontena/cli/master/vagrant/start_command.rb
kontena-cli-0.13.1 lib/kontena/cli/master/vagrant/start_command.rb
kontena-cli-0.13.0.1 lib/kontena/cli/master/vagrant/start_command.rb
kontena-cli-0.13.0 lib/kontena/cli/master/vagrant/start_command.rb
kontena-cli-0.12.3 lib/kontena/cli/master/vagrant/start_command.rb
kontena-cli-0.12.2 lib/kontena/cli/master/vagrant/start_command.rb
kontena-cli-0.12.1 lib/kontena/cli/master/vagrant/start_command.rb
kontena-cli-0.12.0 lib/kontena/cli/master/vagrant/start_command.rb
kontena-cli-0.11.7 lib/kontena/cli/master/vagrant/start_command.rb
kontena-cli-0.11.6 lib/kontena/cli/master/vagrant/start_command.rb