Go/Ruby host plugin dependency
This commit is contained in:
parent
3d0197d0bf
commit
ee7971ab1c
@ -55,14 +55,14 @@ func (c *Host) Execute(trm terminal.UI, project core.Project) int32 {
|
||||
|
||||
trm.Output("have host plugin to run against")
|
||||
|
||||
if r, err := h.HasCapability("dummy"); !r {
|
||||
trm.Output("No dummy capability found (%s)", err)
|
||||
if r, err := h.HasCapability("write_hello"); !r {
|
||||
trm.Output("No write_hello capability found (%s)", err)
|
||||
return 1
|
||||
}
|
||||
|
||||
trm.Output("host plugin has dummy capability to run")
|
||||
trm.Output("host plugin has write_hello capability to run")
|
||||
|
||||
result, err := h.Capability("dummy", trm, "test value")
|
||||
result, err := h.Capability("write_hello", trm)
|
||||
if err != nil {
|
||||
trm.Output("Error running capability: %s", err)
|
||||
return 1
|
||||
|
||||
@ -39,7 +39,7 @@ func (h *AlwaysTrueHost) ParentsFunc() interface{} {
|
||||
}
|
||||
|
||||
func (h *AlwaysTrueHost) Parents() []string {
|
||||
return []string{"force", "host", "platform", "match"} // We just need to have this be the most of all matches
|
||||
return []string{"darwin", "bsd"}
|
||||
}
|
||||
|
||||
// HasCapabilityFunc implements component.Host
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user