Permalink
Browse files

adding a rake task to find missing images

  • Loading branch information...
1 parent e9f4e57 commit 38d61da359f37de88b32993fc046e6e7b6425cb4 @tenderlove committed Aug 11, 2013
Showing with 10 additions and 0 deletions.
  1. +10 −0 Rakefile
View
10 Rakefile
@@ -124,4 +124,14 @@ task :clobber do
rm "public/index.html"
end
+task "missing-images" do
+ need = Dir.entries('public/images/people/photos').sort.map { |x|
+ x.sub(/\..*$/, '')
+ }
+ have = Dir.entries('public/images/people/lines').sort.map { |x|
+ x.sub(/\..*$/, '')
+ }
+ p need - have
+end
+
task :default => 'public/index.html'

0 comments on commit 38d61da

Please sign in to comment.