Make myplugin have parents darwin and bsd
This commit is contained in:
parent
bff3af4a00
commit
cda3ba7b29
@ -39,7 +39,7 @@ func (h *AlwaysTrueHost) ParentsFunc() interface{} {
|
||||
}
|
||||
|
||||
func (h *AlwaysTrueHost) Parents() []string {
|
||||
return []string{}
|
||||
return []string{"darwin", "bsd", "force", "host", "platform", "match"}
|
||||
}
|
||||
|
||||
// HasCapabilityFunc implements component.Host
|
||||
|
||||
@ -100,7 +100,6 @@ func (p *Plugin) SetParentPlugins(typ component.Type) {
|
||||
for _, pp := range p.ParentPlugins {
|
||||
parentComponents = append(parentComponents, pp.components[typ].Component)
|
||||
}
|
||||
// TODO: set parent plugins
|
||||
pluginWithParent.SetParentPlugins(parentComponents)
|
||||
}
|
||||
}
|
||||
|
||||
@ -6,7 +6,7 @@ module VagrantPlugins
|
||||
name "BSD host"
|
||||
description "BSD host support."
|
||||
|
||||
host("bsd", "myplugin") do
|
||||
host("bsd") do
|
||||
require File.expand_path("../host", __FILE__)
|
||||
Host
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user