lib/environment.rb in dev_tasks-0.0.48 vs lib/environment.rb in dev_tasks-0.0.49

- old
+ new

@@ -65,6 +65,21 @@ FileUtils.cp(source,dest) puts "copied " + Color.green + source + Color.clear + " to " + Color.green + dest + Color.clear end end end + + def rake(directory) + Dir.chdir(dir) do + timer=Timer.new + out=`rake default` + + if $? != 0 + puts "rake default in " + directory + puts out + raise project + " failed" + else + puts "rake default (" + directory + ") " + timer.elapsed_str + end + end + end end \ No newline at end of file