lib/capistrano/notifier/mail.rb in capistrano-notifier-0.3.0 vs lib/capistrano/notifier/mail.rb in capistrano-notifier-0.4.0
- old
+ new
@@ -114,10 +114,10 @@
def smtp_settings
cap.notifier_mail_options[:smtp_settings]
end
def subject
- "#{application.titleize} branch #{branch} deployed to #{stage}"
+ cap.notifier_mail_options[:subject] || "#{application.titleize} branch #{branch} deployed to #{stage}"
end
def template(template_name)
config_file = "#{templates_path}/#{template_name}"