Class: Chef::Knife::ClusterSync
- Inherits:
-
Ironfan::Script
show all
- Defined in:
- lib/chef/knife/cluster_sync.rb
Instance Attribute Summary
#broker, #problems
Instance Method Summary
(collapse)
#aggregates?, #prepares?, #run
#all_computers, #bootstrapper, #configure_dry_run, #confirm_execution, #confirm_or_exit, #die, #display, #exit_if_unhealthy!, #get_relevant_slice, #get_slice, #has_problem, #healthy?, included, load_deps, #load_ironfan, #pick_apart, #predicate_str, #progressbar_for_threads, #run_bootstrap, #section, #sub_command
Instance Method Details
- (Boolean) aggregates_on_noop?
69
70
71
|
# File 'lib/chef/knife/cluster_sync.rb', line 69
def aggregates_on_noop?
true
end
|
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# File 'lib/chef/knife/cluster_sync.rb', line 49
def perform_execution(target)
if config[:chef]
if config[:dry_run]
ui.info "(can't do a dry-run when syncing to chef -- skipping)"
else
ui.info "Syncing to Chef:"
target.save :providers => :chef
end
else Chef::Log.debug("Skipping sync to chef") ; end
if config[:cloud] && target.any?(&:machine?)
ui.info "Syncing to cloud:"
target.save :providers => :iaas
else Chef::Log.debug("Skipping sync to cloud") ; end
end
|
- (Boolean) prepares_on_noop?
65
66
67
|
# File 'lib/chef/knife/cluster_sync.rb', line 65
def prepares_on_noop?
true
end
|
- (Boolean) relevant?(computer)
43
44
45
46
47
|
# File 'lib/chef/knife/cluster_sync.rb', line 43
def relevant?(computer)
return false if computer.bogus?
return true if config[:sync_all]
computer.created? or computer.node?
end
|