Skip to content

Instantly share code, notes, and snippets.

@ccschmitz
Created December 12, 2012 04:26
Show Gist options
  • Save ccschmitz/4264855 to your computer and use it in GitHub Desktop.
Save ccschmitz/4264855 to your computer and use it in GitHub Desktop.
A simple Ruby script for generating a cache manifest.
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