Permalink
Browse files

Add 'release notes'.

  • Loading branch information...
1 parent 5b514c7 commit aaa5f00e88880cf24a44e52d08547c00f60c5d80 @devinfoley devinfoley committed Sep 27, 2011
Showing with 5 additions and 3 deletions.
  1. +3 −1 lib/cap_mailer.rb
  2. +1 −1 views/cap_mailer/_section.html.erb
  3. +1 −1 views/cap_mailer/_section.text.erb
View
@@ -43,6 +43,7 @@ def notification_email(cap, config = {}, *args)
:revision => cap.revision,
:real_revision => cap.real_revision,
:release_name => cap.release_name,
+ :release_notes => cap.release_notes,
:version_dir => cap.version_dir,
:shared_dir => cap.shared_dir,
:current_dir => cap.current_dir,
@@ -130,7 +131,8 @@ def section_hash_deployment
:task_name => task_name,
:inferred_command => inferred_command,
:host => config[:host],
- :release_name => config[:release_name]
+ :release_name => config[:release_name],
+ :release_notes => config[:release_notes]
}
end
@@ -6,7 +6,7 @@
<% if data.is_a?(Array) then data = data[0] end -%>
<% arr = case section_title
when 'deployment'
- [:date,:time,:rails_env,:task_name,:inferred_command,:host,:release_name]
+ [:date,:time,:rails_env,:task_name,:inferred_command,:host,:release_name,:release_notes]
when 'source_control'
[:scm,:released,:branch,:revision,:deploy_via,:deploy_to,:repository]
when 'latest_release'
@@ -4,7 +4,7 @@
<% if data.is_a?(Array) then data = data[0] end -%>
<% arr = case section_title
when 'deployment'
- [:date,:time,:rails_env,:task,:inferred_command,:host,:release_name]
+ [:date,:time,:rails_env,:task,:inferred_command,:host,:release_name,:release_notes]
when 'source_control'
[:scm,:released,:branch,:revision,:deploy_via,:deploy_to,:repository]
when 'latest_release'

0 comments on commit aaa5f00

Please sign in to comment.