mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
15 lines
247 B
Ruby
15 lines
247 B
Ruby
# require_relative 'bundle/bundler/setup'
|
|
require 'json'
|
|
|
|
name = "World"
|
|
|
|
payload = STDIN.read
|
|
if payload != ""
|
|
payload = JSON.parse(payload)
|
|
name = payload['name']
|
|
end
|
|
|
|
puts "Hello #{name}!"
|
|
|
|
STDERR.puts "---> STDERR goes to server logs"
|