文件操作 - phony.rb
返回文件管理
返回主菜单
删除本文件
文件: /opt/alt/ruby21/lib64/ruby/2.1.0/rake/phony.rb
编辑文件内容
# Defines a :phony task that you can use as a dependency. This allows # file-based tasks to use non-file-based tasks as prerequisites # without forcing them to rebuild. # # See FileTask#out_of_date? and Task#timestamp for more info. require 'rake' task :phony Rake::Task[:phony].tap do |task| def task.timestamp # :nodoc: Time.at 0 end end
修改文件时间
将文件时间修改为当前时间的前一年
删除文件