Skip to content

Commit

Permalink
rescues rake files that can't load
Browse files Browse the repository at this point in the history
  • Loading branch information
ricaurte committed Apr 11, 2011
1 parent f99a9ca commit f1cd461
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/alltasks.rb
Expand Up @@ -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
Expand Down

0 comments on commit f1cd461

Please sign in to comment.