mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
sending something to stdout
This commit is contained in:
@@ -9,7 +9,7 @@ if payload != ""
|
||||
i = payload['sleep'].to_i
|
||||
STDERR.puts "Sleeping for #{i} seconds..."
|
||||
sleep i
|
||||
STDERR.puts "I'm awake!"
|
||||
puts "I'm awake!" # sending this to stdout for sync response
|
||||
end
|
||||
else
|
||||
STDERR.puts "ERROR: please pass in a sleep value: {\"sleep\": 5}"
|
||||
|
||||
Reference in New Issue
Block a user