Sha256: 6c902a13d57fc40fc790fff73739c1b12889de4e46c250bb671f540c77492c72

Contents?: true

Size: 634 Bytes

Versions: 38

Compression:

Stored size: 634 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['NEW_RELIC_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

38 entries across 38 versions & 2 rubygems

Version Path
newrelic_rpm-3.13.1.300 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.13.0.299 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.12.1.298 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.12.0.288 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.11.2.286 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.11.1.284 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.11.0.283 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.10.0.279 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.9.9.275 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.9.8.273 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.9.7.266 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.9.6.257 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.9.5.251 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.9.4.245 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.9.3.241 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.9.2.239 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.9.1.236 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-3.9.0.229 lib/new_relic/control/frameworks/ruby.rb