lib/garcon/chef/provider/download.rb
# Use to touch a file. This updates the access (atime) and file
# modification (mtime) times for a file. (This action may be used with
# this resource, but is typically only used with the file resource.)
#
# @return [undefined]
#
# @api public
Use to touch a file. This updates the access (atime) and file
modification (mtime) times for a file. (This action may be used with
this resource, but is typically only used with the file resource.)
Use to touch a file . This updates the access ( atime ) and file modification ( mtime ) times for a file . ( This action may be used with this resource but is typically only used with the file resource . )
def action_touch
        if @current_resource.exist?
          converge_by "Update utime on #{r.path}" do
            time = Time.now
            ::File.utime(time, time, r.path)
          end
          r.updated_by_last_action(true)
          load_new_resource_state
          r.exist = true
        else
          Chef::Log.debug "#{r.path} does not exists - nothing to do"
        end
      end
def action_touch if @current_resource . exist? converge_by "Update utime on #{r.path}" do time = Time . now :: File . utime ( time , time , r . path ) end r . updated_by_last_action ( true ) load_new_resource_state r . exist = true else Chef :: Log . debug "#{r.path} does not exists - nothing to do" end end
Use to touch a file.
Use to touch a file .
None
undefined
api
None