Document LockFile
.
This commit is contained in:
parent
62c2ee332f
commit
b7e96e6096
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
require "fcntl"
|
require "fcntl"
|
||||||
|
|
||||||
|
# A lock file.
|
||||||
|
#
|
||||||
|
# @api private
|
||||||
class LockFile
|
class LockFile
|
||||||
attr_reader :path
|
attr_reader :path
|
||||||
|
|
||||||
@ -43,12 +46,18 @@ class LockFile
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# A lock file for a formula.
|
||||||
|
#
|
||||||
|
# @api private
|
||||||
class FormulaLock < LockFile
|
class FormulaLock < LockFile
|
||||||
def initialize(name)
|
def initialize(name)
|
||||||
super("#{name}.formula")
|
super("#{name}.formula")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# A lock file for a cask.
|
||||||
|
#
|
||||||
|
# @api private
|
||||||
class CaskLock < LockFile
|
class CaskLock < LockFile
|
||||||
def initialize(name)
|
def initialize(name)
|
||||||
super("#{name}.cask")
|
super("#{name}.cask")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user