Class/Module Index [+]

Quicksearch

Chef::Knife::ClusterStop

Public Instance Methods

confirm_execution(target) click to toggle source
# File lib/chef/knife/cluster_stop.rb, line 35
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."
  if target.any?(&:permanent?)
    ui.warn "These servers are marked as 'permanent=true': #{ui.color(target.select(&:permanent?).map(&:name).join('.'), :red)}"
  end
  confirm_or_exit("Are you absolutely certain that you want to perform this action? (Type 'Yes' to confirm) ", 'Yes')
end
perform_execution(target) click to toggle source
# File lib/chef/knife/cluster_stop.rb, line 30
def perform_execution(target)
  section("Stopping computers")
  super(target)
end
relevant?(server) click to toggle source
# File lib/chef/knife/cluster_stop.rb, line 26
def relevant?(server)
  server.running?
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.