Class: Chef::Knife::ClusterStop
Instance Method Summary
collapse
#perform_execution, #run
#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, #run_bootstrap, #section, #sub_command
Instance Method Details
#confirm_execution(target) ⇒ Object
30
31
32
33
34
|
# File 'lib/chef/knife/cluster_stop.rb', line 30
def confirm_execution(target)
ui.info " Unless these nodes are backed by EBS volumes, this will result in loss of all data"
ui.info " not saved elsewhere. Even if they are EBS backed, there may still be some data loss."
confirm_or_exit("Are you absolutely certain that you want to perform this action? (Type 'Yes' to confirm) ", 'Yes')
end
|
#relevant?(server) ⇒ Boolean
26
27
28
|
# File 'lib/chef/knife/cluster_stop.rb', line 26
def relevant?(server)
server.running?
end
|