Created
December 12, 2012 04:26
-
-
Save ccschmitz/4264855 to your computer and use it in GitHub Desktop.
A simple Ruby script for generating a cache manifest.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
manifest = File.open('offline.appcache', 'a') | |
manifest.truncate(0) | |
manifest.puts 'CACHE MANIFEST' | |
Dir.glob('*/**/*.*') do |file_name| | |
manifest.puts file_name | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment