Sha256: 3c0c31d2d5e1354282c496d564bbe1889f040fd6df1b49d4f813899020de2422

Contents?: true

Size: 668 Bytes

Versions: 11

Compression:

Stored size: 668 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
      # 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['APP_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

11 entries across 11 versions & 1 rubygems

Version Path
newrelic_rpm-8.2.0 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-8.1.0 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-8.0.0 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-7.2.0 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-7.1.0 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-7.0.0 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-6.15.0 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-6.14.0 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-6.13.1 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-6.13.0 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-6.12.0.367 lib/new_relic/control/frameworks/ruby.rb