Module: ArchUnit::Extraction::ExtractionPaths
- Defined in:
- lib/archunit/extraction/validate_extraction_paths.rb
Overview
Validates public extractor paths before the trusted internal pipeline runs.
Class Method Summary collapse
Class Method Details
.project_root(value) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/archunit/extraction/validate_extraction_paths.rb', line 19 def project_root(value) path = extraction_path(value, 'project_root') raise UserError, 'project_root must be an existing directory' unless path.directory? path.realpath end |
.source_file(value) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/archunit/extraction/validate_extraction_paths.rb', line 12 def source_file(value) path = extraction_path(value, 'source_file') raise UserError, 'source_file must be an existing file' unless path.file? path end |