Sha256: 9f4361c1205893850eb14c463840f564e5b67711b6e674875380cc92b334c264
Contents?: true
Size: 902 Bytes
Versions: 2
Compression:
Stored size: 902 Bytes
Contents
# -*- mode: ruby -*- require 'base64' Populus.watch :event, name: "test001" do cond {|data| data.any?{|d| d.has_key?('Payload')} } runs do |data| event = data.find{|d| d.has_key?('Payload')} Populus.logger.info "From populus!!! this is test001" Populus.logger.info Base64.decode64(event['Payload']) end end Populus.watch :event, name: "test002" do cond {|data| data.any?{|d| d.has_key?('Payload')} } runs do |data| event = data.find{|d| d.has_key?('Payload')} Populus.logger.info "From populus!!! this is test002" Populus.logger.info Base64.decode64(event['Payload']) end end Populus.watch :event, name: "test003" do cond {|data| data.any?{|d| d.has_key?('Payload')} } runs do |data| event = data.find{|d| d.has_key?('Payload')} Populus.logger.info "From populus!!! this is test003" Populus.logger.info Base64.decode64(event['Payload']) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
populus-0.0.4 | examples/multi-event.popl |
populus-0.0.3 | examples/multi-event.popl |