class Octopusci::Notifier
Public Instance Methods
job_complete(job, recip_email, context_str, success=false)
click to toggle source
# 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