This is mruby script runner that get script from S3, http(s), or file with consul event. Chimay had an influence from stretcher.
Chimay::Script.define do
run do
puts 'Chimay is peres trappistes!'
end
end
$ echo s3://example.com/script.rb | chimay
Chimay is peres trappistes!
Aws access key and aws secret access key are read from ~/.aws/credentials. If environment AWS_ACCESS_KEY_ID or AWS_SECRET_ACCESS_KEY exist, use it instead of credentials.
$ consul event -name run_script s3://example.com/script.rb
Chimay is peres trappistes!