Class: Chef::Knife::ClusterBootstrap

Inherits:
ClusterChef::Script show all
Defined in:
lib/chef/knife/cluster_bootstrap.rb

Instance Method Summary collapse

Methods inherited from ClusterChef::Script

#run

Methods included from ClusterChef::KnifeCommon

#bootstrapper, #configure_dry_run, #confirm_or_exit, #die, #display, #get_relevant_slice, #get_slice, included, #load_cluster_chef, load_deps, #predicate_str, #progressbar_for_threads, #relevant?, #run_bootstrap, #section, #sub_command

Instance Method Details

#confirm_execution(target) ⇒ Object



67
68
69
70
# File 'lib/chef/knife/cluster_bootstrap.rb', line 67

def confirm_execution(target)
  ui.info "Bootstrapping the node redoes its initial setup -- only do this on an aborted launch."
  confirm_or_exit("Are you absolutely certain that you want to perform this action? (Type 'Yes' to confirm) ", 'Yes')
end

#perform_execution(target) ⇒ Object



61
62
63
64
65
# File 'lib/chef/knife/cluster_bootstrap.rb', line 61

def perform_execution(target)
  target.each do |svr|
    run_bootstrap(svr, svr.fog_server.dns_name)
  end
end