Class: ToolValidator
Instance Method Summary collapse
Instance Method Details
#validate(tool:, name: nil, extension: EXTENSION_EXECUTABLE, respect_optional: false, boom: false) ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/ceedling/tool_validator.rb', line 18 def validate(tool:, name:nil, extension:EXTENSION_EXECUTABLE, respect_optional:false, boom:false) # Redefine name with name inside tool hash if it's not provided # If the name is provided it's likely the formatted key path into the configuration file name = tool[:name] if name.nil? or name.empty? valid = true valid &= validate_executable( tool:tool, name:name, extension:extension, respect_optional:respect_optional, boom:boom ) valid &= validate_stderr_redirect( tool:tool, name:name, boom:boom ) return valid end |