Class: Chef::Knife::ClusterShow

Inherits:
Chef::Knife show all
Includes:
Ironfan::KnifeCommon
Defined in:
lib/chef/knife/cluster_show.rb

Instance Attribute Summary

Attributes included from Ironfan::KnifeCommon

#broker, #problems

Instance Method Summary collapse

Methods included from Ironfan::KnifeCommon

#all_computers, #bootstrapper, #configure_dry_run, #confirm_execution, #confirm_or_exit, #die, #discover_computers, #display, #exit_if_unhealthy!, #gemfile, #get_relevant_slice, #get_slice, #has_problem, #healthy?, included, load_deps, #load_ironfan, #pick_apart, #predicate_str, #progressbar_for_threads, #relevant?, #run, #run_bootstrap, #section, #sub_command, #wait_for_ssh

Instance Method Details

#_runObject



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/chef/knife/cluster_show.rb', line 37

def _run
  with_verbosity(1){ config[:include_terminated] = true }
  load_ironfan
  die(banner) if @name_args.empty?
  configure_dry_run

  # Load the cluster/facet/slice/whatever
  target = get_slice(* @name_args)

  dump_command_config
  dump_chef_config
  #

  target.each do |computer|
    dump_computer(computer)
  end

  # Display same
  display(target)
end