Sha256: cf6ce78da9dafec114f31e0f3f6247fc06e65031f601518fac92782a86dca756
Contents?: true
Size: 718 Bytes
Versions: 2
Compression:
Stored size: 718 Bytes
Contents
module Messaging def config @config ||= config_yaml.with_indifferent_access end def messenger GeoConcerns::EventsGenerator.new end def geoblacklight_client local_client end def geoserver_client local_client end private def config_yaml YAML.load(ERB.new(File.read("#{Rails.root}/config/messaging.yml")).result)[Rails.env] end def local_client GeoConcerns::LocalMessagingClient.new end def rabbit_client GeoConcerns::RabbitMessagingClient.new(Messaging.config['events']['server']) end module_function :config, :config_yaml, :messenger, :local_client, :rabbit_client, :geoblacklight_client, :geoserver_client end
Version data entries
2 entries across 2 versions & 1 rubygems