Class: Chef::Knife::ClusterStart

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

Instance Method Summary collapse

Methods inherited from ClusterChef::Script

#run

Methods included from ClusterChef::KnifeCommon

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

Instance Method Details

#perform_execution(target) ⇒ Object



31
32
33
34
35
36
# File 'lib/chef/knife/cluster_start.rb', line 31

def perform_execution(target)
  section("Starting machines")
  super(target)
  section("Announcing Chef nodes as started")
  target.send(:delegate_to_servers, :announce_as_started)
end

#relevant?(server) ⇒ Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/chef/knife/cluster_start.rb', line 27

def relevant?(server)
  server.startable?
end