Sha256: 647c4460c00e74d4020bf8c254c16798733f731734e6d392405ff79bfe3b9728

Contents?: true

Size: 447 Bytes

Versions: 38

Compression:

Stored size: 447 Bytes

Contents

module LoaderHelper
  def load_loader(name)
    Appsignal.load(name)
  end

  def start_loader(name)
    Appsignal::Loaders.instances.fetch(name).on_start
  end

  def unregister_loader(name)
    Appsignal::Loaders.unregister(name)
  end

  def define_loader(name, &block)
    Appsignal::Testing.registered_loaders << name
    Class.new(Appsignal::Loaders::Loader) do
      register name
      class_eval(&block) if block_given?
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
appsignal-4.0.6-java spec/support/helpers/loader_helper.rb
appsignal-4.0.6 spec/support/helpers/loader_helper.rb
appsignal-4.0.5-java spec/support/helpers/loader_helper.rb
appsignal-4.0.5 spec/support/helpers/loader_helper.rb
appsignal-4.0.4-java spec/support/helpers/loader_helper.rb
appsignal-4.0.4 spec/support/helpers/loader_helper.rb
appsignal-4.0.3-java spec/support/helpers/loader_helper.rb
appsignal-4.0.3 spec/support/helpers/loader_helper.rb
appsignal-4.0.2-java spec/support/helpers/loader_helper.rb
appsignal-4.0.2 spec/support/helpers/loader_helper.rb
appsignal-4.0.1-java spec/support/helpers/loader_helper.rb
appsignal-4.0.1 spec/support/helpers/loader_helper.rb
appsignal-4.0.0-java spec/support/helpers/loader_helper.rb
appsignal-4.0.0 spec/support/helpers/loader_helper.rb
appsignal-3.13.1-java spec/support/helpers/loader_helper.rb
appsignal-3.13.1 spec/support/helpers/loader_helper.rb
appsignal-3.13.1.alpha.1-java spec/support/helpers/loader_helper.rb
appsignal-3.13.1.alpha.1 spec/support/helpers/loader_helper.rb
appsignal-4.0.0.beta.2-java spec/support/helpers/loader_helper.rb
appsignal-4.0.0.beta.2 spec/support/helpers/loader_helper.rb