TapDependency: add tap accessor.
This commit is contained in:
parent
eb51f8a5fa
commit
b3d44da9e3
@ -132,8 +132,11 @@ class Dependency
|
|||||||
end
|
end
|
||||||
|
|
||||||
class TapDependency < Dependency
|
class TapDependency < Dependency
|
||||||
|
attr_reader :tap
|
||||||
|
|
||||||
def initialize(name, tags=[], env_proc=DEFAULT_ENV_PROC, option_name=name)
|
def initialize(name, tags=[], env_proc=DEFAULT_ENV_PROC, option_name=name)
|
||||||
super(name, tags, env_proc, name.split("/").last)
|
@tap, _, option_name = option_name.rpartition "/"
|
||||||
|
super(name, tags, env_proc, option_name)
|
||||||
end
|
end
|
||||||
|
|
||||||
def installed?
|
def installed?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user