Sha256: e06e77ea22de86ca3f10d13c997f1d7cd1963967458a5321bd3e5171e562b3f8

Contents?: true

Size: 1005 Bytes

Versions: 4

Compression:

Stored size: 1005 Bytes

Contents

######################################################################
#                       EMAIL NOTIFIER CHECKS                        #
######################################################################
Capistrano::Configuration.instance(:must_exist).load do
  namespace :notifiers do
    namespace :check do
      desc <<-DESC
        [internal] Checks to see if all necessary email notification environment variables have been set up.
      DESC
      task :email do
        required_variables = [
          :email_notifier_client_recipients,
          :email_notifier_internal_recipients,
          :email_notifier_domain,
          :email_notifier_username,
          :email_notifier_password,
          :vc_log
        ]

        abort "You must specify either internal or client recipients in order to use the email notifier." if email_notifier_client_recipients.empty? && email_notifier_internal_recipients.empty?

        verify_variables(required_variables)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
chicken_soup-0.4.1 lib/chicken_soup/notifiers/email/email-checks.rb
chicken_soup-0.4.0 lib/chicken_soup/notifiers/email/email-checks.rb
chicken_soup-0.3.0 lib/chicken_soup/notifiers/email/email-checks.rb
chicken_soup-0.2.0 lib/chicken_soup/notifiers/email/email-checks.rb