Class: Chef::Provisioning::ConvergenceStrategy::NoConverge

Inherits:
Chef::Provisioning::ConvergenceStrategy show all
Defined in:
lib/chef/provisioning/convergence_strategy/no_converge.rb

Instance Attribute Summary

Attributes inherited from Chef::Provisioning::ConvergenceStrategy

#config, #convergence_options

Instance Method Summary collapse

Methods inherited from Chef::Provisioning::ConvergenceStrategy

#initialize

Constructor Details

This class inherits a constructor from Chef::Provisioning::ConvergenceStrategy

Instance Method Details

#chef_serverObject



9
10
11
# File 'lib/chef/provisioning/convergence_strategy/no_converge.rb', line 9

def chef_server
  @chef_server ||= convergence_options[:chef_server] || Cheffish.default_chef_server(config)
end

#cleanup_convergence(action_handler, machine_spec) ⇒ Object



19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/chef/provisioning/convergence_strategy/no_converge.rb', line 19

def cleanup_convergence(action_handler, machine_spec)
  _self = self
  Chef::Provisioning.inline_resource(action_handler) do
    chef_node machine_spec.name do
      chef_server _self.chef_server
      action :delete
    end
    chef_client machine_spec.name do
      chef_server _self.chef_server
      action :delete
    end
  end
end

#converge(action_handler, machine) ⇒ Object



16
17
# File 'lib/chef/provisioning/convergence_strategy/no_converge.rb', line 16

def converge(action_handler, machine)
end

#setup_convergence(action_handler, machine) ⇒ Object



13
14
# File 'lib/chef/provisioning/convergence_strategy/no_converge.rb', line 13

def setup_convergence(action_handler, machine)
end