Skip to content

Commit

Permalink
Merge pull request #141 from jay7x/jay7x/sleep
Browse files Browse the repository at this point in the history
(#142) Add `choria::sleep` function
  • Loading branch information
ripienaar authored Dec 6, 2019
2 parents 7e5bbb3 + 8e3cf46 commit 4b03028
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/puppet/functions/choria/sleep.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Sleep for N seconds
Puppet::Functions.create_function(:"choria::sleep") do
dispatch :do_sleep do
param "Integer", :seconds
end

def do_sleep(seconds)
sleep(seconds)
end
end

0 comments on commit 4b03028

Please sign in to comment.