Class: Helium::Logger

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeLogger

Returns a new instance of Logger.



6
7
8
# File 'lib/helium/logger.rb', line 6

def initialize
  @messages = []
end

Instance Attribute Details

#messagesObject (readonly)

Returns the value of attribute messages.



5
6
7
# File 'lib/helium/logger.rb', line 5

def messages
  @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