Sha256: 51b4c2d8dc7c4c7da91d36d55eb35ce9de650e34f7d486bc2d910ee692d666c4

Contents?: true

Size: 309 Bytes

Versions: 1

Compression:

Stored size: 309 Bytes

Contents

# -*- mode: ruby -*-
require 'base64'

Populus.watch :event, name: "sample" do
  When {|data| data.any?{|d| d.has_key?('Payload')} }
  Runs do |data|
    event = data.find{|d| d.has_key?('Payload')}
    Populus.logger.info "From populus!!!"
    Populus.logger.info Base64.decode64(event['Payload'])
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
populus-0.0.1 examples/echo.popl