tests/vendor/ceedling/lib/configurator_validator.rb
# walk into config hash. verify specified file exists.
walk into config hash. verify specified file exists.
walk into config hash . verify specified file exists .
def validate_filepath(config, *keys)
    hash          = retrieve_value(config, keys)
    filepath      = hash[:value]
    return false if (filepath.nil?)
    return true if (filepath =~ TOOL_EXECUTOR_ARGUMENT_REPLACEMENT_PATTERN)
    if (not @file_wrapper.exist?(filepath))
      @stream_wrapper.stderr_puts("ERROR: Config filepath #{format_key_sequence(keys, hash[:depth])}['#{filepath}'] does not exist on disk.") 
      return false
    end      
    return true
  end
def validate_filepath ( config , * keys ) hash = retrieve_value ( config , keys ) filepath = hash [ :value ] return false if ( filepath . nil? ) return true if ( filepath =~ TOOL_EXECUTOR_ARGUMENT_REPLACEMENT_PATTERN ) if ( not @file_wrapper . exist? ( filepath ) ) @stream_wrapper . stderr_puts ( "ERROR: Config filepath #{format_key_sequence(keys, hash[:depth])}['#{filepath}'] does not exist on disk." ) return false end return true end
walk into config hash.
walk into config hash .
# return early if we couldn't walk into hash and find a value # skip everything if we've got an argument replacement pattern # no verbosity checking since this is lowest level anyhow & verbosity checking depends on configurator
config
keys