Sha256: d790140ff1e5e8f10765423ad02332dc6d6315161ae3dd426029d3dda7eb7f4f

Contents?: true

Size: 715 Bytes

Versions: 16

Compression:

Stored size: 715 Bytes

Contents

module NewRelic
  class Control
    module Frameworks
      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

16 entries across 16 versions & 2 rubygems

Version Path
ghazel-newrelic_rpm-3.1.0.1 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.1.0 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.1.0.beta5 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.1.0.beta4 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.1.0.djlogging2 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.1.0.djlogging lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.1.0.beta3 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.1.0.beta2 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.0.1 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.1.0.beta1 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.0.0 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.0.0.beta2 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-3.0.0.beta1 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-2.14.1.logging1 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-2.14.1 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-2.14.0 lib/new_relic/control/frameworks/merb.rb