[common] helper for go trigger plugn events

This commit is contained in:
Alex Quick
2017-01-16 23:08:02 -05:00
parent e57e1408b2
commit 5e3184b61d

View File

@@ -144,3 +144,9 @@ func VerifyImage(image string) bool {
}
return false
}
//PlugnTrigger fire the given plugn trigger with the given args
func PlugnTrigger(triggerName string, args ...string) (string, error) {
res, err := sh.Command("plugn", "trigger", triggerName, args).Output()
return string(res), err
}