Sha256: bdc4dabccc1d278e13b4fd70b61e69676226585e5146ba07160109d2f817b394

Contents?: true

Size: 589 Bytes

Versions: 36

Compression:

Stored size: 589 Bytes

Contents

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

module NewRelic
  class Control
    module Frameworks
      # A control used when no framework is detected - the default.
      class Ruby < NewRelic::Control

        def env
          @env ||= ENV['RUBY_ENV'] || ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'development'
        end

        def root
          @root ||= ENV['APP_ROOT'] || '.'
        end

        def init_config(options={})
        end

      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
newrelic_rpm-3.8.1.221 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.8.0.218 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.7.3.204 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.7.3.199 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.7.2.195 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.7.2.192 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.7.2.190.beta lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.7.1.188 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.7.1.182 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.7.1.180 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.7.0.177 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.7.0.174.beta lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.6.9.171 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.6.8.168 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.6.8.164 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.6.7.159 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.6.7.159.beta lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.6.7.152 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.6.6.147 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.6.5.130 lib/new_relic/control/frameworks/ruby.rb