sprockets
https://github.com/rails/sprockets
Ruby
Rack-based asset packaging system
Sprockets::Cache::FileStore#clear
Public: Clear the cache adapted from ActiveSupport::Cache::FileStore#clear Deletes all items from the cache. In this case it deletes all the entries in the specified file store directory except for .keep or .gitkeep. Be careful which directory is specified as @root because everything in that directory will be deleted. Returns true
Edit
git clone [email protected]:rails/sprockets.git
cd sprockets
open lib/sprockets/cache/file_store.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Sprockets--Cache--FileStore-clear-for-pr
# Commit to gitgit add lib/sprockets/cache/file_store.rbgit commit -m "better docs for Sprockets::Cache::FileStore#clear"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Sprockets--Cache--FileStore-clear-for-pr
hub pull-request
# Celebrate!