Class: Expressir::Commands::ValidateLoad
- Defined in:
- lib/expressir/commands/validate_load.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#exit_with_error, #initialize, #say
Constructor Details
This class inherits a constructor from Expressir::Commands::Base
Instance Method Details
#run(paths) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/expressir/commands/validate_load.rb', line 6 def run(paths) # Determine if input is a manifest or direct paths if paths.size == 1 && File.extname(paths.first) == ".yaml" validate_from_manifest(paths.first) else validate_from_paths(paths) end end |