Class: Chef::Handler::SpinupComplete
- Inherits:
-
Chef::Handler
- Object
- Chef::Handler
- Chef::Handler::SpinupComplete
- Defined in:
- lib/chef-handler-spinup-complete.rb
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ SpinupComplete
constructor
A new instance of SpinupComplete.
- #report ⇒ Object
Constructor Details
#initialize(opts = {}) ⇒ SpinupComplete
Returns a new instance of SpinupComplete.
32 33 34 |
# File 'lib/chef-handler-spinup-complete.rb', line 32 def initialize(opts={}) @handlers = opts.fetch(:handlers, ['default']) end |
Instance Method Details
#report ⇒ Object
36 37 38 39 40 41 |
# File 'lib/chef-handler-spinup-complete.rb', line 36 def report sock = TCPSocket.new('127.0.0.1', 3030) sock.write(warn_first) sock.write(ok_second) sock.close end |