Module: Vagrant::Util
- Included in:
- Actions::Base, Actions::Runner, Busy, Commands, Downloaders::Base, Env, Provisioners::Base, SSH, VM
- Defined in:
- lib/vagrant/util.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#error_and_exit(error) ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/vagrant/util.rb', line 13 def error_and_exit(error) abort <<-error ===================================================================== Vagrant experienced an error! #{error.chomp} ===================================================================== error end |
#logger ⇒ Object
23 24 25 |
# File 'lib/vagrant/util.rb', line 23 def logger Logger.singleton_logger end |
#wrap_output ⇒ Object
7 8 9 10 11 |
# File 'lib/vagrant/util.rb', line 7 def wrap_output puts "=====================================================================" yield puts "=====================================================================" end |