Module: Base
- Defined in:
- lib/base.rb
Instance Attribute Summary collapse
-
#log ⇒ Object
Returns the value of attribute log.
Class Method Summary collapse
Instance Attribute Details
#log ⇒ Object
Returns the value of attribute log.
23 24 25 |
# File 'lib/base.rb', line 23 def log @log end |
Class Method Details
.init_logger ⇒ Object
29 30 31 32 33 34 |
# File 'lib/base.rb', line 29 def self.init_logger log = Logger.new(STDOUT) log.progname = 'Knife VCenter' log.level = Logger::INFO log end |
.log ⇒ Object
25 26 27 |
# File 'lib/base.rb', line 25 def self.log @log ||= init_logger end |