Sha256: db75479fcb0ffb2a4b484658f1982938eaf3f8a989a1c426856dafd28c62aea0
Contents?: true
Size: 686 Bytes
Versions: 3
Compression:
Stored size: 686 Bytes
Contents
module NimbleNodes # returns array of files def self.files files = %w(dynos report server) files.push NimbleNodes.legacy? ? 'filter' : 'middleware' files end # returns true if gem is loaded in a pre 2.3 version of rails def self.legacy? defined?(RAILS_GEM_VERSION) and RAILS_GEM_VERSION.slice(0..2).to_f < 2.3 end #= Monitoring # pass over the hash containing Rack env variables # a Report will be created and posted if neccessary def self.monitor(env) report = NimbleNodes::Report.new(env) report.post if report.post? end end NimbleNodes.files.each { |file| require File.dirname(__FILE__) + "/nimble_nodes/#{file}" }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nimble_nodes-0.1.7 | lib/nimble_nodes.rb |
nimble_nodes-0.1.6 | lib/nimble_nodes.rb |
nimble_nodes-0.1.5 | lib/nimble_nodes.rb |