Class: Fig::UpdateLock
- Inherits:
-
Object
- Object
- Fig::UpdateLock
- Defined in:
- lib/fig/update_lock.rb
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(lock_directory, response) ⇒ UpdateLock
constructor
A new instance of UpdateLock.
Constructor Details
#initialize(lock_directory, response) ⇒ UpdateLock
Returns a new instance of UpdateLock.
10 11 12 13 14 |
# File 'lib/fig/update_lock.rb', line 10 def initialize(lock_directory, response) set_up_lock(lock_directory, response) return end |
Instance Method Details
#close ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/fig/update_lock.rb', line 16 def close() begin @lock.close rescue IOError => error # Don't care if it's already closed. end return end |