Class: Octopusci::Notifier
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- Octopusci::Notifier
- Defined in:
- lib/octopusci/notifier.rb
Instance Method Summary collapse
Instance Method Details
#job_complete(job, recip_email, context_str, success = false) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/octopusci/notifier.rb', line 10 def job_complete(job, recip_email, context_str, success=false) @job = job @success = success @context_str = context_str if success @status_str = 'success' else @status_str = 'failed' end mail(:to => recip_email, :subject => "Octopusci Build (#{@status_str}) - #{context_str} - #{@job['repo_name']} / #{@job['branch_name']}") do |format| format.html end end |