keg: add delete_pyc_files! method.

This commit is contained in:
Mike McQuaid 2014-03-13 09:05:40 +00:00
parent 5b6d872459
commit 916e751596

View File

@ -196,6 +196,13 @@ class Keg < Pathname
from.make_relative_symlink(self)
end
def delete_pyc_files!
Pathname.new(self).find do |pn|
next if pn.extname != '.pyc'
pn.delete
end
end
protected
def resolve_any_conflicts dst