Class: VagrantPlugins::Utils::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-utils/command_logs.rb,
lib/vagrant-utils/command_rake.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.synopsisObject



4
5
6
# File 'lib/vagrant-utils/command_logs.rb', line 4

def self.synopsis
  "Look at the boostrap logs"
end

Instance Method Details

#executeObject



8
9
10
11
12
13
14
15
16
17
# File 'lib/vagrant-utils/command_logs.rb', line 8

def execute 
  args = ARGV
  args.shift
  with_target_vms do |machine|
    env = machine.action(:ssh_run,
                          ssh_run_command: "tail -f /var/log/vagrant/bootstrap.log",)
    exit_status = env[:ssh_run_exit_status] || 0
    return exit_status
  end
end