Sha256: d6c7d18d7e3b177bdb96f21a037cf708967e63345672e0d312b75132f6ec6612

Contents?: true

Size: 521 Bytes

Versions: 96

Compression:

Stored size: 521 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, config_file = nil)
    Appsignal::Config.new(
      project_fixture_path,
      env,
      initial_config,
      logger,
      config_file
    )
  end

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

Version data entries

96 entries across 96 versions & 1 rubygems

Version Path
appsignal-3.1.0-java spec/support/helpers/config_helpers.rb
appsignal-3.1.0 spec/support/helpers/config_helpers.rb
appsignal-3.0.27-java spec/support/helpers/config_helpers.rb
appsignal-3.0.27 spec/support/helpers/config_helpers.rb
appsignal-3.0.26-java spec/support/helpers/config_helpers.rb
appsignal-3.0.26 spec/support/helpers/config_helpers.rb
appsignal-3.0.25-java spec/support/helpers/config_helpers.rb
appsignal-3.0.25 spec/support/helpers/config_helpers.rb
appsignal-3.0.24-java spec/support/helpers/config_helpers.rb
appsignal-3.0.24 spec/support/helpers/config_helpers.rb
appsignal-3.0.23-java spec/support/helpers/config_helpers.rb
appsignal-3.0.23 spec/support/helpers/config_helpers.rb
appsignal-3.0.22-java spec/support/helpers/config_helpers.rb
appsignal-3.0.22 spec/support/helpers/config_helpers.rb
appsignal-3.0.21-java spec/support/helpers/config_helpers.rb
appsignal-3.0.21 spec/support/helpers/config_helpers.rb
appsignal-3.0.21.alpha.1-java spec/support/helpers/config_helpers.rb
appsignal-3.0.21.alpha.1 spec/support/helpers/config_helpers.rb
appsignal-3.0.20-java spec/support/helpers/config_helpers.rb
appsignal-3.0.20 spec/support/helpers/config_helpers.rb