lib/garcon/chef/provider/download.rb
# Use to delete a file.
#
# @return [undefined]
#
# @api public
Use to delete a file.
Use to delete a file .
def action_delete
        if @current_resource.exist?
          converge_by "Delete #{r.path}" do
            backup unless ::File.symlink?(r.path)
            ::File.delete(r.path)
          end
          r.updated_by_last_action(true)
          load_new_resource_state
          r.exist = false
        else
          Chef::Log.debug "#{r.path} does not exists - nothing to do"
        end
      end
def action_delete if @current_resource . exist? converge_by "Delete #{r.path}" do backup unless :: File . symlink? ( r . path ) :: File . delete ( r . path ) end r . updated_by_last_action ( true ) load_new_resource_state r . exist = false else Chef :: Log . debug "#{r.path} does not exists - nothing to do" end end
Use to delete a file.
Use to delete a file .
None
undefined
api
None