Sha256: ba5d68379dbdc57937f92b8a11047355b1c9c2763e69599b7d2920dd8d1f4302
Contents?: true
Size: 579 Bytes
Versions: 1
Compression:
Stored size: 579 Bytes
Contents
require 'action_mailer' module Travis module Mailer class Build < ActionMailer::Base layout 'build' default :from => 'notifications@travis-ci.org' helper Helper::Build def finished_email(build, recipients) @build = build @commit = build.commit mail(:to => recipients, :subject => subject, :template_path => 'build') end private def subject "[#{@build.status_message}] #{@build.repository.slug}##{@build.number} (#{@commit.branch} - #{@commit.commit[0, 7]})" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
travis-core-0.0.1 | lib/travis/mailer/build.rb |