Class: VagrantPlugins::Utils::Command
- Inherits:
-
Object
- Object
- VagrantPlugins::Utils::Command
- 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
.synopsis ⇒ Object
4 5 6 |
# File 'lib/vagrant-utils/command_logs.rb', line 4 def self.synopsis "Look at the boostrap logs" end |
Instance Method Details
#execute ⇒ Object
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 |