Class: Dapp::Dimg::Lock::File
Class Attribute Summary collapse
Instance Attribute Summary collapse
-
#locks_path ⇒ Object
readonly
<< self.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(locks_path, name) ⇒ File
constructor
A new instance of File.
Methods inherited from Base
Constructor Details
#initialize(locks_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(locks_path, name) super(name) @locks_path = Pathname.new(locks_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
#locks_path ⇒ Object (readonly)
<< self
13 14 15 |
# File 'lib/dapp/dimg/lock/file.rb', line 13 def locks_path @locks_path end |