1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/243-game_ynh.git synced 2024-09-03 18:06:00 +02:00
243-game_ynh/sources/Rakefile
2020-07-16 12:28:11 +02:00

11 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