lib/propshaft/output_path.rb in propshaft-0.6.4 vs lib/propshaft/output_path.rb in propshaft-0.7.0
- old
+ new
@@ -40,10 +40,10 @@
private
def fresh_version_within_limit(mtime, count, expires_at:, limit:)
modified_at = [ 0, Time.now - mtime ].max
modified_at < expires_at || limit < count
end
-
+
def remove(path)
FileUtils.rm(@path.join(path))
Propshaft.logger.info "Removed #{path}"
end