Class: TestChanges::Config
- Inherits:
-
Object
- Object
- TestChanges::Config
- Defined in:
- lib/test_changes/config.rb
Instance Method Summary collapse
- #exists? ⇒ Boolean
-
#initialize(config_path) ⇒ Config
constructor
A new instance of Config.
- #runners ⇒ Object
Constructor Details
#initialize(config_path) ⇒ Config
Returns a new instance of Config.
3 4 5 |
# File 'lib/test_changes/config.rb', line 3 def initialize(config_path) @config_path = config_path end |
Instance Method Details
#exists? ⇒ Boolean
7 8 9 |
# File 'lib/test_changes/config.rb', line 7 def exists? File.exist?(@config_path) end |
#runners ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/test_changes/config.rb', line 11 def runners config.map do |runner_name, | finding_pattern_maps = ['finding_patterns'] Runner.new( name: runner_name, finding_patterns: FindingPattern.build(finding_pattern_maps), exclusion_patterns: ['exclude']) end end |