Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add 'release notes'.

  • Loading branch information...
commit aaa5f00e88880cf24a44e52d08547c00f60c5d80 1 parent 5b514c7
@devinfoley devinfoley authored
View
4 lib/cap_mailer.rb
@@ -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
View
2  views/cap_mailer/_section.html.erb
@@ -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'
View
2  views/cap_mailer/_section.text.erb
@@ -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'
Please sign in to comment.
Something went wrong with that request. Please try again.