Sha256: cf69b4f20ddd30ead790fe049e3f58ee67395f8eff776d0ccf4eec9cee3d53f3

Contents?: true

Size: 435 Bytes

Versions: 10

Compression:

Stored size: 435 Bytes

Contents

require_relative '../../repositories/presets'

Inferno::Application.register_provider(:presets) do
  prepare do
    target_container.start :suites

    files_to_load = Dir.glob(['config/presets/*.json', 'config/presets/*.json.erb'])
    files_to_load.map! { |path| File.realpath(path) }
    presets_repo = Inferno::Repositories::Presets.new

    files_to_load.each do |path|
      presets_repo.insert_from_file(path)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
inferno_core-0.5.2 lib/inferno/config/boot/presets.rb
inferno_core-0.5.1 lib/inferno/config/boot/presets.rb
inferno_core-0.5.0 lib/inferno/config/boot/presets.rb
inferno_core-0.4.44 lib/inferno/config/boot/presets.rb
inferno_core-0.4.43 lib/inferno/config/boot/presets.rb
inferno_core-0.4.42 lib/inferno/config/boot/presets.rb
inferno_core-0.4.41 lib/inferno/config/boot/presets.rb
inferno_core-0.4.40 lib/inferno/config/boot/presets.rb
inferno_core-0.4.39 lib/inferno/config/boot/presets.rb
inferno_core-0.4.38 lib/inferno/config/boot/presets.rb