Method: Chef::Provider::File#action_touch
- Defined in:
- lib/chef/provider/file.rb
#action_touch ⇒ Object
266 267 268 269 270 271 272 273 |
# File 'lib/chef/provider/file.rb', line 266 def action_touch action_create converge_by("update utime on file #{@new_resource.path}") do time = Time.now ::File.utime(time, time, @new_resource.path) Chef::Log.info("#{@new_resource} updated atime and mtime to #{time}") end end |