Class: Integrity::Notifier::IntegrityTwitter
- Inherits:
-
Notifier::Base
- Object
- Notifier::Base
- Integrity::Notifier::IntegrityTwitter
- Defined in:
- lib/notifier/twitter.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.to_haml ⇒ Object
9 10 11 |
# File 'lib/notifier/twitter.rb', line 9 def self.to_haml File.read File.dirname(__FILE__) / "config.haml" end |
Instance Method Details
#deliver! ⇒ Object
13 14 15 16 |
# File 'lib/notifier/twitter.rb', line 13 def deliver! @tweet = Twitter::Base.new(@config["email"], @config["pass"]) @tweet.post() end |
#message ⇒ Object
18 19 20 |
# File 'lib/notifier/twitter.rb', line 18 def "#{build_status} | #{project.name}, commit #{build.short_commit_identifier} - [committer: #{build..name}]" end |