Skip to content
Snippets Groups Projects
Commit 0bce3b3f authored by Xu Cheng's avatar Xu Cheng
Browse files

TapDependency: allow passing arbitrary option_name

parent 72a11b7d
No related branches found
No related tags found
No related merge requests found
......@@ -134,8 +134,8 @@ end
class TapDependency < Dependency
attr_reader :tap
def initialize(name, tags = [], env_proc = DEFAULT_ENV_PROC, option_name = name)
@tap, _, option_name = option_name.rpartition "/"
def initialize(name, tags = [], env_proc = DEFAULT_ENV_PROC, option_name = name.split("/").last)
@tap = name.rpartition("/").first
super(name, tags, env_proc, option_name)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment