Class: Chef::Provisioning::ConvergenceStrategy
- Inherits:
-
Object
- Object
- Chef::Provisioning::ConvergenceStrategy
- 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,
lib/chef/provisioning/convergence_strategy/ignore_convergence_failure.rb
Direct Known Subclasses
Defined Under Namespace
Modules: IgnoreConvergenceFailure Classes: InstallCached, InstallMsi, InstallSh, NoConverge, PrecreateChefObjects
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#convergence_options ⇒ Object
readonly
Returns the value of attribute convergence_options.
Instance Method Summary collapse
- #cleanup_convergence(action_handler, machine_spec) ⇒ Object
- #converge(action_handler, machine) ⇒ Object
-
#initialize(convergence_options, config) ⇒ ConvergenceStrategy
constructor
convergence_options - a freeform hash of options to the converger.
-
#setup_convergence(action_handler, machine) ⇒ Object
Get the machine ready to converge, but do not converge.
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(, config) @convergence_options = || {} @config = config end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
12 13 14 |
# File 'lib/chef/provisioning/convergence_strategy.rb', line 12 def config @config end |
#convergence_options ⇒ Object (readonly)
Returns the value of attribute convergence_options.
11 12 13 |
# File 'lib/chef/provisioning/convergence_strategy.rb', line 11 def @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 |