Sha256: cf5277f609d72fe0edc5a2be42b52e409b96847d914202f2bdab4451aab2d686

Contents?: true

Size: 770 Bytes

Versions: 8

Compression:

Stored size: 770 Bytes

Contents

# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.

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 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

8 entries across 8 versions & 1 rubygems

Version Path
newrelic_rpm-7.2.0 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-7.1.0 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-7.0.0 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-6.15.0 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-6.14.0 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-6.13.1 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-6.13.0 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-6.12.0.367 lib/new_relic/control/frameworks/merb.rb