Module: LockOps

Included in:
Rhoconnect::Client, Rhoconnect::Source
Defined in:
lib/rhoconnect/lock_ops.rb

Overview

Collection of methods for locking shared source documents when source_sync and client_sync need to access them

Instance Method Summary collapse

Instance Method Details

#lock(doc, timeout = 0, raise_on_expire = false) ⇒ Object



6
7
8
9
10
# File 'lib/rhoconnect/lock_ops.rb', line 6

def lock(doc,timeout=0,raise_on_expire=false)
  Store.lock(docname(doc),timeout,raise_on_expire) do
    yield self
  end
end