Class: ExtremeContinuousBuilder::GrowlNotifier

Inherits:
Notifier
  • Object
show all
Defined in:
lib/notifiers.rb

Constant Summary

Constants inherited from Notifier

Notifier::BUILD_RESULT_TYPES

Instance Method Summary collapse

Methods inherited from Notifier

setup

Instance Method Details

#notify(type, text) ⇒ Object



49
50
51
# File 'lib/notifiers.rb', line 49

def notify(type, text)
  notifier.notify type.to_s, format_title(type), build_summary(text)
end

#setup(settings) ⇒ Object



31
32
33
34
35
36
37
38
39
40
# File 'lib/notifiers.rb', line 31

def setup(settings)
  @application_name = settings[:application_name]
  growl_host = settings[:growl_host] || "localhost"
  growl_password = settings[:growl_password]
  @has_been_setup = true
  
  @growl_notifier = Growl.new(growl_host, "XCB", 
            BUILD_RESULT_TYPES.map{|sym| sym.to_s}, nil, growl_password)
  nil
end