Sha256: 2d0dc1e195fa2d2cfe18d840b23a72d7c7515cdb6cb7eb4302ab0fda82164ec2

Contents?: true

Size: 586 Bytes

Versions: 44

Compression:

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

44 entries across 44 versions & 1 rubygems

Version Path
appsignal-3.3.11-java spec/support/helpers/config_helpers.rb
appsignal-3.3.11 spec/support/helpers/config_helpers.rb
appsignal-3.4.0-java spec/support/helpers/config_helpers.rb
appsignal-3.4.0 spec/support/helpers/config_helpers.rb
appsignal-3.3.10-java spec/support/helpers/config_helpers.rb
appsignal-3.3.10 spec/support/helpers/config_helpers.rb
appsignal-3.3.9-java spec/support/helpers/config_helpers.rb
appsignal-3.3.9 spec/support/helpers/config_helpers.rb
appsignal-3.3.8-java spec/support/helpers/config_helpers.rb
appsignal-3.3.8 spec/support/helpers/config_helpers.rb
appsignal-3.3.7-java spec/support/helpers/config_helpers.rb
appsignal-3.3.7 spec/support/helpers/config_helpers.rb
appsignal-3.3.6-java spec/support/helpers/config_helpers.rb
appsignal-3.3.6 spec/support/helpers/config_helpers.rb
appsignal-3.3.5-java spec/support/helpers/config_helpers.rb
appsignal-3.3.5 spec/support/helpers/config_helpers.rb
appsignal-3.3.4-java spec/support/helpers/config_helpers.rb
appsignal-3.3.4 spec/support/helpers/config_helpers.rb
appsignal-3.3.3-java spec/support/helpers/config_helpers.rb
appsignal-3.3.3 spec/support/helpers/config_helpers.rb