lib/ceedling.rb in ceedling-0.13.0.rc1 vs lib/ceedling.rb in ceedling-0.13.0

- old
+ new

@@ -1,7 +1,12 @@ require 'rake' +ERR_MSG = <<EOF +I expected to see a project.yml file in the current directoy. Please create one +by hand or by using the 'ceedling' shell command. +EOF + def ceedling_dir File.join( File.dirname(__FILE__), '..') end @@ -10,9 +15,13 @@ File.join( ceedling_dir, 'plugins') end -load File.join( - ceedling_dir, - 'lib', - 'rakefile.rb') +ceeling_lib_rakefile = File.join( ceedling_dir, + 'lib', + 'rakefile.rb') +if File.exists? "./project.yml" + load ceeling_lib_rakefile +else + $stderr.puts ERR_MSG +end