Class: MultiGit::JGitBackend::Ref::PessimisticUpdater
- Inherits:
-
Updater
- Object
- Ref::Updater
- Updater
- MultiGit::JGitBackend::Ref::PessimisticUpdater
- Defined in:
- lib/multi_git/jgit_backend/ref.rb
Instance Attribute Summary
Attributes inherited from Ref::Updater
Instance Method Summary collapse
- #destroy! ⇒ Object
-
#initialize(*_) ⇒ PessimisticUpdater
constructor
A new instance of PessimisticUpdater.
- #update(nx) ⇒ Object
Methods inherited from Ref::Updater
Constructor Details
#initialize(*_) ⇒ PessimisticUpdater
Returns a new instance of PessimisticUpdater.
68 69 70 71 72 73 74 75 |
# File 'lib/multi_git/jgit_backend/ref.rb', line 68 def initialize(*_) super @ref_update = repository.__backend__.updateRef(name) if !@ref_update.try_lock(false) raise end self.ref = ref.reload end |