Class: CapMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
lib/cap_mailer.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.configure_capistrano_mailer {|@@config| ... } ⇒ Object

Yields:

  • (@@config)


18
19
20
# File 'lib/cap_mailer.rb', line 18

def self.configure_capistrano_mailer(&block)
  yield @@config
end

.reloadable?Boolean

Returns:

  • (Boolean)


24
# File 'lib/cap_mailer.rb', line 24

def self.reloadable?() false end

Instance Method Details

#notification_email(cap_vars, release_data = {}, extra_information = {}, data = {}) ⇒ Object



26
27
28
29
30
31
32
33
34
# File 'lib/cap_mailer.rb', line 26

def notification_email(cap_vars, release_data = {}, extra_information = {}, data = {})
  body_hash = body_data_hash(cap_vars, release_data = {}, extra_information = {}, data = {})
  subject       "#{config[:subject_prepend]}[#{cap_vars.first[:rails_env].upcase}][#{body_hash[:repo_end]}] #{body_hash[:inferred_command]}#{config[:subject_append]}"
  recipients    config[:recipient_addresses]
  from          config[:sender_address]
  content_type  config[:email_content_type]

  body          body_hash
end