mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Updated hello to use stdin.
This commit is contained in:
@@ -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 != ""
|
||||
|
||||
Reference in New Issue
Block a user