Sha256: 4278577904b3adf4d34a07c603cc070ddbb95c53fbfa50b196140528063b9c34

Contents?: true

Size: 488 Bytes

Versions: 8

Compression:

Stored size: 488 Bytes

Contents

class NewRelic::Control::Merb < NewRelic::Control
  
  def env
    @env ||= ::Merb.env
  end
  def root 
    ::Merb.root
  end
  
  def to_stdout(msg)
    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

8 entries across 8 versions & 2 rubygems

Version Path
newrelic_rpm-2.9.9 lib/new_relic/control/merb.rb
newrelic_rpm-2.9.8 lib/new_relic/control/merb.rb
newrelic_rpm-2.9.6 lib/new_relic/control/merb.rb
genki-newrelic_rpm-2.10.1 lib/new_relic/control/merb.rb
newrelic_rpm-2.9.5 lib/new_relic/control/merb.rb
newrelic_rpm-2.9.2 lib/new_relic/control/merb.rb
newrelic_rpm-2.9.3 lib/new_relic/control/merb.rb
newrelic_rpm-2.9.4 lib/new_relic/control/merb.rb