Skip to content

Commit

Permalink
Add 'release notes'.
Browse files Browse the repository at this point in the history
  • Loading branch information
devinfoley committed Sep 27, 2011
1 parent 5b514c7 commit aaa5f00
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lib/cap_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion views/cap_mailer/_section.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion views/cap_mailer/_section.text.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit aaa5f00

Please sign in to comment.