Sha256: 5a1f63eb59834110c019af0fa7c13ea9afdd5705fd520a503ab2842f1038b4b7
Contents?: true
Size: 642 Bytes
Versions: 5
Compression:
Stored size: 642 Bytes
Contents
module Kontena::Plugin::Vagrant::Master class RestartCommand < Kontena::Command include Kontena::Cli::Common def execute require_relative '../../../machine/vagrant' vagrant_path = "#{Dir.home}/.kontena/vagrant_master" abort("Cannot find Vagrant kontena-master".colorize(:red)) unless Dir.exist?(vagrant_path) Dir.chdir(vagrant_path) do spinner "Restarting Vagrant kontena-master " do Open3.popen2('vagrant reload') do |stdin, output, wait| while o = output.gets print o if ENV['DEBUG'] end end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems