Sha256: 34e5859de6058f1c486d2d8c7836be578fd25070f1705380e9889b67624bf705

Contents?: true

Size: 747 Bytes

Versions: 46

Compression:

Stored size: 747 Bytes

Contents

module NewRelic
  class Control
    module Frameworks
      # Includes limited support for Merb
      class Merb < NewRelic::Control

        def env
          @env ||= ::Merb.env
        end
        def root
          ::Merb.root
        end

        def to_stdout(msg)
          Merb.logger.info("NewRelic ~ " + msg)
        rescue => e
          STDOUT.puts "NewRelic ~ " + msg
        end

        def init_config options={}
          ::Merb::Plugins.add_rakefiles File.join(newrelic_root,"lib/tasks/all.rb")

          # Merb gives you a Merb::Plugins.config hash...feel free to put your stuff in your piece of it
          ::Merb::Plugins.config[:newrelic] = {
            :config => self
          }
        end
      end
    end
  end
end

Version data entries

46 entries across 46 versions & 4 rubygems

Version Path
newrelic_rpm-3.5.4.35.beta lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.5.4.34 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.5.4.33 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.5.4.31.beta lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.5.4.29.beta lib/new_relic/control/frameworks/merb.rb
ghazel-newrelic_rpm-3.5.4 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.5.3.25 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.5.3.24 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.5.2.17 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.5.1.14 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.5.1.14.beta lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.5.1.beta1 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.5.0.1 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.5.1.alpha lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.5.0 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.4.2.1 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.4.2 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.4.2.beta1 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.4.1 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.4.1.beta1 lib/new_relic/control/frameworks/merb.rb