-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
51f6cf2
commit 88c2412
Showing
4 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
require 'thor' | ||
|
||
require_relative 'cli/main' | ||
|
||
module Inferno | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Inferno::Application.register_provider(:cli) do | ||
prepare do | ||
target_container.start :logging | ||
|
||
require 'oj' | ||
require 'blueprinter' | ||
|
||
Blueprinter.configure do |config| | ||
config.generator = Oj | ||
end | ||
|
||
target_container.start :suites | ||
|
||
# This line is required to bypass the NO_DB env variable and load all repositories | ||
# but the NO_DB env variable itself is required to bypass specific Inferno boot bugs | ||
Dir.glob('../../../repositories/*.rb').each do |repository| | ||
require_relative repository | ||
puts "Require'd #{repository}" | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters