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
ghazel-newrelic_rpm-3.4.0.2 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.4.0.1 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.4.0 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.4.0.beta2 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.3.5 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.3.5.beta1 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.4.0.beta1 lib/new_relic/control/frameworks/merb.rb
dolores_rpm-3.3.4.8 lib/new_relic/control/frameworks/merb.rb
dolores_rpm-3.3.4.7 lib/new_relic/control/frameworks/merb.rb
dolores_rpm-3.3.4.6 lib/new_relic/control/frameworks/merb.rb
dolores_rpm-3.3.4.5 lib/new_relic/control/frameworks/merb.rb
dolores_rpm-3.3.4.4 lib/new_relic/control/frameworks/merb.rb
dolores_rpm-3.3.4.3 lib/new_relic/control/frameworks/merb.rb
dolores_rpm-3.3.4.1.fork2 lib/new_relic/control/frameworks/merb.rb
dolores_rpm-3.3.4.1.fork lib/new_relic/control/frameworks/merb.rb
wd_newrelic_rpm-3.3.4.1 lib/new_relic/control/frameworks/merb.rb
dolores_rpm-3.3.4.fork lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.3.4.1 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.3.4 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.3.4.beta1 lib/new_relic/control/frameworks/merb.rb