Class: Dapp::Dimg::Lock::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.
15 16 17 18 19 |
# File 'lib/dapp/dimg/lock/file.rb', line 15 def initialize(lock_path, name) super(name) @lock_path = Pathname.new(lock_path).tap(&:mkpath) end |
Class Attribute Details
.counter ⇒ Object
8 9 10 |
# File 'lib/dapp/dimg/lock/file.rb', line 8 def counter @counter ||= 0 end |
Instance Attribute Details
#lock_path ⇒ Object (readonly)
<< self
13 14 15 |
# File 'lib/dapp/dimg/lock/file.rb', line 13 def lock_path @lock_path end |