Class: Dapp::Lock::File
Overview
File
Class Attribute Summary collapse
Instance Attribute Summary collapse
-
#lock_path ⇒ Object
readonly
<< self.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(lock_path, name) ⇒ File
constructor
A new instance of File.
Methods inherited from Base
Constructor Details
#initialize(lock_path, name) ⇒ File
Returns a new instance of File.
16 17 18 19 20 |
# File 'lib/dapp/lock/file.rb', line 16 def initialize(lock_path, name) super(name) @lock_path = Pathname.new(lock_path).tap(&:mkpath) end |
Class Attribute Details
.counter ⇒ Object
9 10 11 |
# File 'lib/dapp/lock/file.rb', line 9 def counter @counter ||= 0 end |
Instance Attribute Details
#lock_path ⇒ Object (readonly)
<< self
14 15 16 |
# File 'lib/dapp/lock/file.rb', line 14 def lock_path @lock_path end |