Sha256: 32618bd31c7e4bfbd7df17c21996dc4b1091456637a2f88d50e42a6d7cadee23

Contents?: true

Size: 395 Bytes

Versions: 13

Compression:

Stored size: 395 Bytes

Contents

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

Inferno::Application.boot(:presets) do
  init do
    use :suites

    files_to_load = Dir.glob(File.join(Dir.pwd, 'config', 'presets', '*.json'))
    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

13 entries across 13 versions & 1 rubygems

Version Path
inferno_core-0.3.5 lib/inferno/config/boot/presets.rb
inferno_core-0.3.4 lib/inferno/config/boot/presets.rb
inferno_core-0.3.3 lib/inferno/config/boot/presets.rb
inferno_core-0.3.2 lib/inferno/config/boot/presets.rb
inferno_core-0.3.1 lib/inferno/config/boot/presets.rb
inferno_core-0.3.0 lib/inferno/config/boot/presets.rb
inferno_core-0.3.0.rc1 lib/inferno/config/boot/presets.rb
inferno_core-0.2.0 lib/inferno/config/boot/presets.rb
inferno_core-0.2.0.rc4 lib/inferno/config/boot/presets.rb
inferno_core-0.2.0.rc3 lib/inferno/config/boot/presets.rb
inferno_core-0.2.0.rc2 lib/inferno/config/boot/presets.rb
inferno_core-0.2.0.rc1 lib/inferno/config/boot/presets.rb
inferno_core-0.1.4.pre lib/inferno/config/boot/presets.rb