Sha256: e2c3aef8f12a7e544a8630cd8d6e9850eaedf3014bb7b510a5e7176d0b678ec4

Contents?: true

Size: 438 Bytes

Versions: 34

Compression:

Stored size: 438 Bytes

Contents

module MailRoom
  module Delivery
    def [](name)
      require_relative("./delivery/#{name}")

      case name
      when "postback"
        Delivery::Postback
      when "logger"
        Delivery::Logger
      when "letter_opener"
        Delivery::LetterOpener
      when "sidekiq"
        Delivery::Sidekiq
      when "que"
        Delivery::Que
      else
        Delivery::Noop
      end
    end

    module_function :[]
  end
end

Version data entries

34 entries across 34 versions & 2 rubygems

Version Path
gitlab-mail_room-0.0.8 lib/mail_room/delivery.rb
gitlab-mail_room-0.0.7 lib/mail_room/delivery.rb
gitlab-mail_room-0.0.6 lib/mail_room/delivery.rb
gitlab-mail_room-0.0.4 lib/mail_room/delivery.rb
gitlab-mail_room-0.0.3 lib/mail_room/delivery.rb
gitlab-mail_room-0.0.2 lib/mail_room/delivery.rb
mail_room-0.10.0 lib/mail_room/delivery.rb
mail_room-0.9.1 lib/mail_room/delivery.rb
mail_room-0.9.0 lib/mail_room/delivery.rb
mail_room-0.8.1 lib/mail_room/delivery.rb
mail_room-0.8.0 lib/mail_room/delivery.rb
mail_room-0.7.0 lib/mail_room/delivery.rb
mail_room-0.6.1 lib/mail_room/delivery.rb
mail_room-0.6.0 lib/mail_room/delivery.rb