mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-01-13 01:58:27 +08:00
12 lines
300 B
Ruby
12 lines
300 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}"
|
||
|
|
||
|
File.write("cache.appcache", appcache.sub(/^# Updated:.*$/, updated))
|
||
|
end
|
||
|
end
|