Class/Module Index [+]

Quicksearch

Chef::Knife::ClusterSync

Public Instance Methods

aggregates_on_noop?() click to toggle source
# File lib/chef/knife/cluster_sync.rb, line 69
def aggregates_on_noop?
  true
end
perform_execution(target) click to toggle source
# 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
prepares_on_noop?() click to toggle source
# File lib/chef/knife/cluster_sync.rb, line 65
def prepares_on_noop?
  true
end
relevant?(computer) click to toggle source
# 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.