Sha256: 63f228f5d6be34885f6f9a0469f99cc4fb51e52fb2b45f993869587040424fc2

Contents?: true

Size: 757 Bytes

Versions: 22

Compression:

Stored size: 757 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 Exception => 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

22 entries across 22 versions & 2 rubygems

Version Path
dolores_rpm-3.2.0.6 lib/new_relic/control/frameworks/merb.rb
dolores_rpm-3.2.0.5 lib/new_relic/control/frameworks/merb.rb
dolores_rpm-3.2.0.4 lib/new_relic/control/frameworks/merb.rb
dolores_rpm-3.2.0.3 lib/new_relic/control/frameworks/merb.rb
dolores_rpm-3.2.0.2 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.3.2.beta1 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.3.1 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.3.1.beta2 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.3.1.beta1 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.3.0 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.3.0.beta1 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.2.0.1 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.2.0 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.2.0.beta2 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.2.0.beta1 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.1.2 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.1.2.beta2 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.1.2.beta1 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.1.1 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.1.1.beta3 lib/new_relic/control/frameworks/merb.rb