Sha256: 6a3478f836eb5e6c944dd869030d84c1d6cb820aed7e41d4b16f17bad9a49f27

Contents?: true

Size: 631 Bytes

Versions: 42

Compression:

Stored size: 631 Bytes

Contents

module ConfigHelpers
  def project_fixture_path
    File.expand_path(
      File.join(File.dirname(__FILE__), "../fixtures/projects/valid")
    )
  end

  def project_fixture_config(env = "production", initial_config = {}, logger = Appsignal.logger, # rubocop:disable Metrics/ParameterLists
    config_file = nil)
    Appsignal::Config.new(
      project_fixture_path,
      env,
      initial_config,
      logger,
      config_file
    )
  end
  module_function :project_fixture_config, :project_fixture_path

  def start_agent(env = "production")
    Appsignal.config = project_fixture_config(env)
    Appsignal.start
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
appsignal-3.5.4-java spec/support/helpers/config_helpers.rb
appsignal-3.5.4 spec/support/helpers/config_helpers.rb
appsignal-3.5.3-java spec/support/helpers/config_helpers.rb
appsignal-3.5.3 spec/support/helpers/config_helpers.rb
appsignal-3.5.2-java spec/support/helpers/config_helpers.rb
appsignal-3.5.2 spec/support/helpers/config_helpers.rb
appsignal-3.5.1-java spec/support/helpers/config_helpers.rb
appsignal-3.5.1 spec/support/helpers/config_helpers.rb
appsignal-3.5.0-java spec/support/helpers/config_helpers.rb
appsignal-3.5.0 spec/support/helpers/config_helpers.rb
appsignal-3.4.16-java spec/support/helpers/config_helpers.rb
appsignal-3.4.16 spec/support/helpers/config_helpers.rb
appsignal-3.4.15-java spec/support/helpers/config_helpers.rb
appsignal-3.4.15 spec/support/helpers/config_helpers.rb
appsignal-3.4.14-java spec/support/helpers/config_helpers.rb
appsignal-3.4.14 spec/support/helpers/config_helpers.rb
appsignal-3.4.13-java spec/support/helpers/config_helpers.rb
appsignal-3.4.13 spec/support/helpers/config_helpers.rb
appsignal-3.4.12-java spec/support/helpers/config_helpers.rb
appsignal-3.4.12 spec/support/helpers/config_helpers.rb