mirror of
https://github.com/danog/2048.git
synced 2024-12-02 09:17:47 +01:00
12 lines
299 B
Ruby
12 lines
299 B
Ruby
require "date"
|
|
|
|
namespace :appcache do
|
|
desc "update the date in the appcache file (in the gh-pages branch)"
|
|
task :update do
|
|
appcache = File.read("cache.appcache")
|
|
updated = "# Updated: #{DateTime.now}\n"
|
|
|
|
File.write("cache.appcache", appcache.sub(/\A(#.*$\n)?/, updated))
|
|
end
|
|
end
|