Sha256: e6f4ab86e6b0e83b2079b67c317a602da538a2758a8ff545a6fd473c800e833b

Contents?: true

Size: 657 Bytes

Versions: 7

Compression:

Stored size: 657 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

7 entries across 7 versions & 1 rubygems

Version Path
newrelic_rpm-8.9.0 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-8.8.0 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-8.7.0 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-8.6.0 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-8.5.0 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-8.4.0 lib/new_relic/control/frameworks/ruby.rb
newrelic_rpm-8.3.0 lib/new_relic/control/frameworks/ruby.rb