Skip to content

Instantly share code, notes, and snippets.

View aflatter's full-sized avatar

Alexander Flatter aflatter

View GitHub Profile
We couldn’t find that file to show.
#
# Chef Client Config File
#
log_level :info
log_location STDOUT
ssl_verify_mode :verify_none
registration_url "http://localhost:4000"
openid_url "http://localhost:4001"
template_url "http://localhost:4000"
[14:09] steveb: hah! i had that problem
[14:09] steveb: and you're going to ask me how i fixed it
[14:09] steveb: and i dont know
[14:09] kamalfariz_: steveb: how did you fix it?
require 'rubygems'
require 'eventmachine'
class Handler
include EventMachine::Deferrable
def takes_long_time(seconds = 5)
sleep(seconds)
puts "Awoke after #{seconds} seconds."
succeed(seconds)