piston.rake
Posted by Chad Humphries over 2 years ago / Source: http://errtheblog.com/post/38
You’re using piston to manage your plugins (or other code originating from alien repositories), right? I couldn’t find a way to say “show me all the directories piston is managing,” so I created a way.
desc "Print directories managed by Piston." 
task :pistoned do
  puts Dir['**/.svn/dir-props'].select { |file| File.read(file) =~ /piston/ }.map { |file| file.split('.svn').first }
end
Stick that in RAILS_ROOT/lib/tasks/ then run rake pistoned to see which directories are under piston’s love and care.
Language Ruby / Tagged with rake