class EcoRake module Utils module Mailing # @return [EcoRake::Mailer] def mailer @mailer ||= EcoRake::Utils::Mailer.new end # Helper to notify that there are no files to be processed def email_missing_files(enviro:, to:) mailer.mail(**{ to: to, subject: "#{enviro.upcase} (No files to be processed)", body: 'No files found to be processed. Aborting...' }) end end end end