Ranjib,
How does it get deployed though? Via chef or via other means? What require are you referring to? There is no require in the client.rb file.
Doug.On Tue, Aug 19, 2014 at 10:10 AM, Ranjib Dey < " target="_blank"> > wrote:can be anywhere in you system. if its in arbitrary path, you have to supply the entire path (without .rb extension) in require, if its anywhere in $LOAD_PATH, then just the file name (without the .rb extension).require 'foo' # if foo.rb is anywhere in $LOAD_PATHrequire '/home/doug/foo' # when /home/doug is outside $LOAD_PATHcheersranjibOn Tue, Aug 19, 2014 at 9:56 AM, Douglas Garstang < " target="_blank"> > wrote:Does it go in a cookbook? This would seem to be a problem to me as the handler needs to be deployed before chef runs.I'm trying to write a start handler. I've managed to getinto the client.rb file. Obviously, I need to change the details. Now, I'm reading http://docs.getchef.com/handlers.html and under the 'Reporting' section it talks about how to install the handler, but it doesn't say where the start_handler.rb file goes.
start_handlers << Chef::Reporting::StartHandler.new()
Doug
--
Regards,
Douglas Garstang
http://www.linkedin.com/in/garstang
Email: " target="_blank">
Cell: +1-805-340-5627
Archive powered by MHonArc 2.6.16.