doob avatar doob committed 84b28f8

Now checks if the configuration file exsits and is well formed.

Comments (0)

Files changed (2)


 			path.each { |e| file = load_impl(e) } if path.is_a? Array
 			file = load_impl(path) if path.is_a? String
+			raise "Malformed configuration file \"#{file}\"" if @config.is_a? FalseClass
 			raise "Could not find configuration file(s) \"#{file}\"" if @config.empty?


 # License:: [Boost Software License 1.0]
+require "pathname"
 require "singleton"
 import "dake.dake.application"
 		def module_deps_ext; ".moduleDeps".freeze end
 		def depsExt; "_deps.yml".freeze end
-		def dake_configs; $POSIX ? "/etc/dake".freeze : "".freeze end
+		def dake_exe_path; File.dirname($0) end
+		def dake_configs; $POSIX ? "/etc/dake".freeze : dake_exe_path.freeze end
 		def dake_default_config; dake_configs/"default".freeze end
 		def dake_config_exts; [".yml", ".yaml"].freeze end
 			return ".exe".freeze if $WINDOWS
-		def executable_prefix
-			"".freeze
-		end
+		def executable_prefix; "".freeze end
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.