Class: Chef::Provisioning::ConvergenceStrategy

Inherits:
Object
  • Object
show all
Defined in:
lib/chef/provisioning/convergence_strategy.rb,
lib/chef/provisioning/convergence_strategy/install_sh.rb,
lib/chef/provisioning/convergence_strategy/install_msi.rb,
lib/chef/provisioning/convergence_strategy/no_converge.rb,
lib/chef/provisioning/convergence_strategy/install_cached.rb,
lib/chef/provisioning/convergence_strategy/precreate_chef_objects.rb

Direct Known Subclasses

NoConverge, PrecreateChefObjects

Defined Under Namespace

Classes: InstallCached, InstallMsi, InstallSh, NoConverge, PrecreateChefObjects

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(convergence_options, config) ⇒ ConvergenceStrategy

convergence_options - a freeform hash of options to the converger. config - a Chef::Config-like object with global config like :log_level


6
7
8
9
# File 'lib/chef/provisioning/convergence_strategy.rb', line 6

def initialize(convergence_options, config)
  @convergence_options = convergence_options || {}
  @config = config
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config


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

def config
  @config
end

#convergence_optionsObject (readonly)

Returns the value of attribute convergence_options


11
12
13
# File 'lib/chef/provisioning/convergence_strategy.rb', line 11

def convergence_options
  @convergence_options
end

Instance Method Details

#cleanup_convergence(action_handler, machine_spec) ⇒ Object


23
24
25
# File 'lib/chef/provisioning/convergence_strategy.rb', line 23

def cleanup_convergence(action_handler, machine_spec)
  raise "cleanup_convergence not overridden on #{self.class}"
end

#converge(action_handler, machine) ⇒ Object


19
20
21
# File 'lib/chef/provisioning/convergence_strategy.rb', line 19

def converge(action_handler, machine)
  raise "converge not overridden on #{self.class}"
end

#setup_convergence(action_handler, machine) ⇒ Object

Get the machine ready to converge, but do not converge.


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

def setup_convergence(action_handler, machine)
  raise "setup_convergence not overridden on #{self.class}"
end