sending something to stdout

This commit is contained in:
Travis Reeder
2016-11-30 23:19:36 -08:00
parent 5edc0aa8af
commit 2550a83e16

View File

@@ -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}"