app/mailers/unity_mailer.rb
# notifier of FireCloud API service interruptions
notifier of FireCloud API service interruptions
notifier of FireCloud API service interruptions
def firecloud_api_notification(current_status, requester=nil)
    unless Rails.application.config.disable_admin_notifications == true
      @admins = User.where(admin: true).map(&:email)
      @requester = requester.nil? ? 'no-reply@broadinstitute.org' : requester
      @current_status = current_status
      unless @admins.empty?
        mail(to: @admins, reply_to: @requester, subject: "[Unity Admin Notification#{Rails.env != 'production' ? " (#{Rails.env})" : nil}]: ALERT: FIRECLOUD API SERVICE INTERRUPTION") do |format|
          format.html
        end
      end
    end
  end
def firecloud_api_notification ( current_status , requester = nil ) unless Rails . application . config . disable_admin_notifications == true @admins = User . where ( admin : true ) . map ( & :email ) @requester = requester . nil? ? 'no-reply@broadinstitute.org' : requester @current_status = current_status unless @admins . empty? mail ( to : @admins , reply_to : @requester , subject : "[Unity Admin Notification#{Rails.env != 'production' ? " (#{Rails.env})" : nil}]: ALERT: FIRECLOUD API SERVICE INTERRUPTION" ) do | format | format . html end end end end
notifier of FireCloud API service interruptions
notifier of FireCloud API service interruptions
current_status
<not_specific>
requester
<not_specific>