Method: Calligraphy::FileResource#refresh_lock

Defined in:
lib/calligraphy/resource/file_resource.rb

#refresh_lockObject

Responsible for refreshing locks (see section 9.10.2 of RFC4918).

Used in LOCK requests.



211
212
213
214
215
216
217
218
219
220
221
# File 'lib/calligraphy/resource/file_resource.rb', line 211

def refresh_lock
  if locked?
    @store.transaction do
      @store[:lockdiscovery][-1][:timeout] = timeout_node
    end

    fetch_lock_info
  else
    refresh_ancestor_locks @ancestor_path, @ancestors.dup
  end
end