Sha256: c25afbf37210c9a5b78eccd95166027c992ca9aefc3e421542cdfc78fd60b435

Contents?: true

Size: 332 Bytes

Versions: 35

Compression:

Stored size: 332 Bytes

Contents

class EmailProcessor
  @retry_limit = 1
  @retry_delay = 120
  @queue = :no_notifier_needed

  def self.perform(args)
    exec_me = args["which_email"].downcase.to_sym
    raise ArgumentError.new("No email specified to send. MCP needs your memory. Program deleted") unless exec_me

    Notifier.mcp(exec_me, args).deliver
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
no_notifier_needed-2.4.5 lib/generators/no_notifier_needed/templates/jobs/email_processor.rb
no_notifier_needed-2.4.4 lib/generators/no_notifier_needed/templates/jobs/email_processor.rb
no_notifier_needed-2.4.3 lib/generators/no_notifier_needed/templates/jobs/email_processor.rb
no_notifier_needed-2.4.2 lib/generators/no_notifier_needed/templates/jobs/email_processor.rb
no_notifier_needed-2.4.1 lib/generators/no_notifier_needed/templates/jobs/email_processor.rb
no_notifier_needed-2.4.0 lib/generators/no_notifier_needed/templates/jobs/email_processor.rb
no_notifier_needed-2.3.8 lib/generators/no_notifier_needed/templates/jobs/email_processor.rb
no_notifier_needed-2.3.7 lib/generators/no_notifier_needed/templates/jobs/email_processor.rb
no_notifier_needed-2.3.6 lib/generators/no_notifier_needed/templates/jobs/email_processor.rb
no_notifier_needed-2.3.5 lib/generators/no_notifier_needed/templates/jobs/email_processor.rb
no_notifier_needed-2.3.4 lib/generators/no_notifier_needed/templates/jobs/email_processor.rb
no_notifier_needed-2.3.3 lib/generators/no_notifier_needed/templates/jobs/email_processor.rb
no_notifier_needed-2.3.2 lib/generators/no_notifier_needed/templates/jobs/email_processor.rb
no_notifier_needed-2.3.1 lib/generators/no_notifier_needed/templates/jobs/email_processor.rb
no_notifier_needed-2.3.0 lib/generators/no_notifier_needed/templates/jobs/email_processor.rb
no_notifier_needed-2.2.4 lib/generators/no_notifier_needed/templates/jobs/email_processor.rb
no_notifier_needed-2.2.3 lib/generators/no_notifier_needed/templates/jobs/email_processor.rb
no_notifier_needed-2.2.2 lib/generators/no_notifier_needed/templates/jobs/email_processor.rb
no_notifier_needed-2.2.1 lib/generators/no_notifier_needed/templates/jobs/email_processor.rb
no_notifier_needed-2.2.0 lib/generators/no_notifier_needed/templates/jobs/email_processor.rb