Methods

Class/Module Index [+]

Quicksearch

Chef::Knife::ClusterKick

Based on gist.github.com/1325982 by Ash Berlin

"Since chef v0.10 you can send USR1 to the chef-client process and it
will wake up and do a run. But the usual case when I want to do a run
is cos I'm either testing a cookbook change or I want to deploy now. I
could just run sudo chef-client but then that will only log to std
out.  Just run this script, it will send chef-client a USR1 signal and
then tail the log file (but nicely so that you'll get your terminal
back when the run completes)."

Constants

KICKSTART_SCRIPT

Public Instance Methods

run() click to toggle source
# File lib/chef/knife/cluster_kick.rb, line 50
def run
  @name_args = [ @name_args.join('-') ]
  config[:display_target] = true
  script = Erubis::Eruby.new(KICKSTART_SCRIPT).result(:config => config)
  @name_args[1] = script
  super
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.