Browse files

rescues rake files that can't load

  • Loading branch information...
1 parent f99a9ca commit f1cd4614731215e4c9c7b4738414b99362b38d16 @ricaurte committed Apr 11, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/alltasks.rb
View
6 lib/alltasks.rb
@@ -11,7 +11,11 @@
check_dir = File.join(load_path, path)
if File.directory?(check_dir)
Dir["#{check_dir}/**/*.rake".gsub("\\", '/')].each do |name|
- load name
+ begin
+ load name
+ rescue
+ puts "was not able to load: #{name}"
+ end
end
end
end

0 comments on commit f1cd461

Please sign in to comment.