mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
9 lines
142 B
Ruby
9 lines
142 B
Ruby
require 'json'
|
|
|
|
payload = JSON.parse(ENV['PAYLOAD'])
|
|
|
|
i = payload['sleep'].to_i
|
|
puts "Sleeping for #{i} seconds..."
|
|
sleep i
|
|
puts "I'm awake!"
|