Sha256: d13128110803804f4899e5840bd638db41ffe0bb40ed61c816de58b51f8ea2b2

Contents?: true

Size: 255 Bytes

Versions: 34

Compression:

Stored size: 255 Bytes

Contents

module MailRoom
  module Arbitration
    def [](name)
      require_relative("./arbitration/#{name}")

      case name
      when "redis"
        Arbitration::Redis
      else
        Arbitration::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/arbitration.rb
mail_room-0.11.1 lib/mail_room/arbitration.rb
mail_room-0.11.0 lib/mail_room/arbitration.rb
gitlab-mail_room-0.0.24 lib/mail_room/arbitration.rb
mail_room-0.10.1 lib/mail_room/arbitration.rb
gitlab-mail_room-0.0.23 lib/mail_room/arbitration.rb
gitlab-mail_room-0.0.22 lib/mail_room/arbitration.rb
gitlab-mail_room-0.0.21 lib/mail_room/arbitration.rb
gitlab-mail_room-0.0.20 lib/mail_room/arbitration.rb
gitlab-mail_room-0.0.19 lib/mail_room/arbitration.rb
gitlab-mail_room-0.0.18 lib/mail_room/arbitration.rb
gitlab-mail_room-0.0.17 lib/mail_room/arbitration.rb
gitlab-mail_room-0.0.16 lib/mail_room/arbitration.rb
gitlab-mail_room-0.0.15 lib/mail_room/arbitration.rb
gitlab-mail_room-0.0.14 lib/mail_room/arbitration.rb
gitlab-mail_room-0.0.13 lib/mail_room/arbitration.rb
gitlab-mail_room-0.0.12 lib/mail_room/arbitration.rb
gitlab-mail_room-0.0.11 lib/mail_room/arbitration.rb
gitlab-mail_room-0.0.10 lib/mail_room/arbitration.rb
gitlab-mail_room-0.0.9 lib/mail_room/arbitration.rb