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