Updated hello to use stdin.

This commit is contained in:
Travis Reeder
2016-10-06 10:44:27 -07:00
parent c6f81ff921
commit 8390c5dc8e
4 changed files with 13 additions and 5 deletions

View File

@@ -2,9 +2,7 @@ require 'json'
name = "World"
# payload = STDIN.read
# or using env vars: ENV['PAYLOAD']
payload = ENV['PAYLOAD']
payload = STDIN.read
STDERR.puts 'payload: ' + payload.inspect
if payload != ""