Sha256: e430299c953f05e16497780888d5f3a9cf0a9e9a9beeeed2234ab7c11ef811a7

Contents?: true

Size: 727 Bytes

Versions: 5

Compression:

Stored size: 727 Bytes

Contents

require 'bunny'

module FDE
  module Rabbit
    module Connection
      include Bunny

      def self.new
        Bunny.new(
          host: (FDE::Rabbit::Notification.config.host || '127.0.0.1'),
          port: (FDE::Rabbit::Notification.config.port || 5672),
          ssl: (FDE::Rabbit::Notification.config.ssl || false),
          vhost: (FDE::Rabbit::Notification.config.vhost || '/'),
          user: (FDE::Rabbit::Notification.config.user || 'guest'),
          password: (FDE::Rabbit::Notification.config.password || 'guest'),
          hartbeat: (FDE::Rabbit::Notification.config.hartbeat || :server),
          frame_max: (FDE::Rabbit::Notification.config.frame_max || 131072)
        )
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fde-rabbit-notification-0.5.0 lib/rabbit/connection.rb
fde-rabbit-notification-0.4.1 lib/rabbit/connection.rb
fde-rabbit-notification-0.4.0 lib/rabbit/connection.rb
fde-rabbit-notification-0.3.0 lib/rabbit/connection.rb
fde-rabbit-notification-0.2.0 lib/rabbit/connection.rb