Introducing the SPStrigger_execute Gem

require 'spstrigger_execute'

url = ''
ste = url
a = ste.mae 'kit', 'motion detected

#=> [[:rse, ["//job:wakeup", "", "kit"]], [:rse, ["//job:log", "", "kit"]], [:sps, "kit/output/led: 5 on duration 2"], [:sps, "niko2: awake"], [:sps, "mia: notify hello: James"]]

The above example show what happens when an SPS topic and message is passed into it. Returned is a couple of jobs to run as well as a couple of SPS messages to publish.