Class: Fig::UpdateLock

Inherits:
Object
  • Object
show all
Defined in:
lib/fig/update_lock.rb

Instance Method Summary collapse

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

#closeObject


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