Fail if target path does not exist

This commit is contained in:
Mark Villacampa
2014-08-27 21:11:15 +02:00
committed by Laurent Sansonetti
parent aa12d7ed77
commit 0187a9111f

View File

@@ -461,6 +461,10 @@ EOS
attr_accessor :targets
def target(path, type, opts={})
unless File.exist?(path)
App.fail "Could not find target of type '#{type}' at '#{path}'"
end
case type
when :framework
opts[:load] = true unless opts[:load] == false