Sha256: 2b80ea4aac439ca90546ef7415d094b3ca454b39bd3235f4dc00bfbebee3b138

Contents?: true

Size: 290 Bytes

Versions: 8

Compression:

Stored size: 290 Bytes

Contents

module LogjamAgent
  module Forwarders
    @@forwarders = {}

    extend self

    def add(f)
      @@forwarders["#{f.app}-#{f.env}"] = f
    end

    def get(app, env)
      @@forwarders["#{app}-#{env}"]
    end

    def reset
      @@forwarders.each_value {|f| f.reset}
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
logjam_agent-0.1.3 lib/logjam_agent/forwarders.rb
logjam_agent-0.1.2 lib/logjam_agent/forwarders.rb
logjam_agent-0.1.1 lib/logjam_agent/forwarders.rb
logjam_agent-0.1.0 lib/logjam_agent/forwarders.rb
logjam_agent-0.0.4 lib/logjam_agent/forwarders.rb
logjam_agent-0.0.3 lib/logjam_agent/forwarders.rb
logjam_agent-0.0.2 lib/logjam_agent/forwarders.rb
logjam_agent-0.0.1 lib/logjam_agent/forwarders.rb