Go/Ruby host plugin dependency

This commit is contained in:
sophia 2021-10-15 12:21:00 -05:00 committed by Paul Hinze
parent 3d0197d0bf
commit ee7971ab1c
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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