Class: Helium::Logger
- Inherits:
-
Object
- Object
- Helium::Logger
- Defined in:
- lib/helium/logger.rb
Overview
Class to pick up log messages from the build process so we can display them elsewhere, e.g. in web pages after deploy requests.
Instance Attribute Summary collapse
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
Instance Method Summary collapse
-
#initialize ⇒ Logger
constructor
A new instance of Logger.
- #update(type, msg) ⇒ Object
Constructor Details
#initialize ⇒ Logger
Returns a new instance of Logger.
6 7 8 |
# File 'lib/helium/logger.rb', line 6 def initialize @messages = [] end |
Instance Attribute Details
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
5 6 7 |
# File 'lib/helium/logger.rb', line 5 def @messages end |
Instance Method Details
#update(type, msg) ⇒ Object
10 11 12 |
# File 'lib/helium/logger.rb', line 10 def update(type, msg) @messages << msg end |