Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
adding a rake task to find missing images
  • Loading branch information
tenderlove committed Aug 11, 2013
1 parent e9f4e57 commit 38d61da
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Rakefile
Expand Up @@ -124,4 +124,14 @@ task :clobber do
rm "public/index.html" rm "public/index.html"
end 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' task :default => 'public/index.html'

0 comments on commit 38d61da

Please sign in to comment.