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.25 lib/mail_room/delivery.rb
mail_room-0.11.1 lib/mail_room/delivery.rb
mail_room-0.11.0 lib/mail_room/delivery.rb
gitlab-mail_room-0.0.24 lib/mail_room/delivery.rb
mail_room-0.10.1 lib/mail_room/delivery.rb
gitlab-mail_room-0.0.23 lib/mail_room/delivery.rb
gitlab-mail_room-0.0.22 lib/mail_room/delivery.rb
gitlab-mail_room-0.0.21 lib/mail_room/delivery.rb
gitlab-mail_room-0.0.20 lib/mail_room/delivery.rb
gitlab-mail_room-0.0.19 lib/mail_room/delivery.rb
gitlab-mail_room-0.0.18 lib/mail_room/delivery.rb
gitlab-mail_room-0.0.17 lib/mail_room/delivery.rb
gitlab-mail_room-0.0.16 lib/mail_room/delivery.rb
gitlab-mail_room-0.0.15 lib/mail_room/delivery.rb
gitlab-mail_room-0.0.14 lib/mail_room/delivery.rb
gitlab-mail_room-0.0.13 lib/mail_room/delivery.rb
gitlab-mail_room-0.0.12 lib/mail_room/delivery.rb
gitlab-mail_room-0.0.11 lib/mail_room/delivery.rb
gitlab-mail_room-0.0.10 lib/mail_room/delivery.rb
gitlab-mail_room-0.0.9 lib/mail_room/delivery.rb