Sha256: 9558a03ca9456cb0b0e897c840bad2f40d03ed6a0b4af294ee119fe56d006fae

Contents?: true

Size: 656 Bytes

Versions: 40

Compression:

Stored size: 656 Bytes

Contents

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

  def project_fixture_config( # rubocop:disable Metrics/ParameterLists
    env = "production",
    initial_config = {},
    logger = Appsignal.internal_logger,
    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

40 entries across 40 versions & 1 rubygems

Version Path
appsignal-3.11.0-java spec/support/helpers/config_helpers.rb
appsignal-3.11.0 spec/support/helpers/config_helpers.rb
appsignal-3.10.0-java spec/support/helpers/config_helpers.rb
appsignal-3.10.0 spec/support/helpers/config_helpers.rb
appsignal-3.9.3-java spec/support/helpers/config_helpers.rb
appsignal-3.9.3 spec/support/helpers/config_helpers.rb
appsignal-3.9.2-java spec/support/helpers/config_helpers.rb
appsignal-3.9.2 spec/support/helpers/config_helpers.rb
appsignal-3.9.1-java spec/support/helpers/config_helpers.rb
appsignal-3.9.1 spec/support/helpers/config_helpers.rb
appsignal-3.9.0-java spec/support/helpers/config_helpers.rb
appsignal-3.9.0 spec/support/helpers/config_helpers.rb
appsignal-3.8.1-java spec/support/helpers/config_helpers.rb
appsignal-3.8.1 spec/support/helpers/config_helpers.rb
appsignal-3.8.0-java spec/support/helpers/config_helpers.rb
appsignal-3.8.0 spec/support/helpers/config_helpers.rb
appsignal-3.7.6-java spec/support/helpers/config_helpers.rb
appsignal-3.7.6 spec/support/helpers/config_helpers.rb
appsignal-3.7.2-java spec/support/helpers/config_helpers.rb
appsignal-3.7.2 spec/support/helpers/config_helpers.rb