Sha256: 3954d383ffa470284b3043cc98e94563bdd80fcc6d3ff92047716fbb78739f97

Contents?: true

Size: 554 Bytes

Versions: 18

Compression:

Stored size: 554 Bytes

Contents

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

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
newrelic_rpm-2.13.4.rum6 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-2.13.4.rum5 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-2.13.6.beta2 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-2.13.6.beta1 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-2.13.4.rum4 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-2.13.5.beta4 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-2.13.5.beta3 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-2.13.5.beta2 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-2.13.5.beta1 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-2.13.4.eum3 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-2.13.4.eum2 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-2.13.4.eum1 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-2.13.4 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-2.13.3 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-2.13.3.beta lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-2.13.2 lib/new_relic/control/frameworks/merb.rb
honkster-newrelic_rpm-2.13.1 lib/new_relic/control/frameworks/merb.rb
newrelic_rpm-2.13.1 lib/new_relic/control/frameworks/merb.rb