Sha256: 3c535c7acdea605517b44463a6b0c54332f6b0654cca2a5a3a0b458c48c246bf

Contents?: true

Size: 844 Bytes

Versions: 47

Compression:

Stored size: 844 Bytes

Contents

class Chef
module Provisioning
  class ConvergenceStrategy
    # convergence_options - a freeform hash of options to the converger.
    # config - a Chef::Config-like object with global config like :log_level
    def initialize(convergence_options, config)
      @convergence_options = convergence_options || {}
      @config = config
    end

    attr_reader :convergence_options
    attr_reader :config

    # Get the machine ready to converge, but do not converge.
    def setup_convergence(action_handler, machine)
      raise "setup_convergence not overridden on #{self.class}"
    end

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

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

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
chef-provisioning-2.7.6 lib/chef/provisioning/convergence_strategy.rb
chef-provisioning-2.7.4 lib/chef/provisioning/convergence_strategy.rb
chef-provisioning-2.7.2 lib/chef/provisioning/convergence_strategy.rb
chef-provisioning-2.7.1 lib/chef/provisioning/convergence_strategy.rb
chef-provisioning-2.7.0 lib/chef/provisioning/convergence_strategy.rb
chef-provisioning-2.6.0 lib/chef/provisioning/convergence_strategy.rb
chef-provisioning-2.5.0 lib/chef/provisioning/convergence_strategy.rb
chef-provisioning-2.4.0 lib/chef/provisioning/convergence_strategy.rb
chef-provisioning-2.3.2 lib/chef/provisioning/convergence_strategy.rb
chef-provisioning-2.3.1 lib/chef/provisioning/convergence_strategy.rb
chef-provisioning-2.3.0 lib/chef/provisioning/convergence_strategy.rb
chef-provisioning-2.2.1 lib/chef/provisioning/convergence_strategy.rb
chef-provisioning-2.2.0 lib/chef/provisioning/convergence_strategy.rb
chef-provisioning-2.1.1 lib/chef/provisioning/convergence_strategy.rb
chef-provisioning-2.1.0 lib/chef/provisioning/convergence_strategy.rb
chef-provisioning-2.0.2 lib/chef/provisioning/convergence_strategy.rb
chef-provisioning-2.0.0 lib/chef/provisioning/convergence_strategy.rb
chef-provisioning-1.9.1 lib/chef/provisioning/convergence_strategy.rb
chef-provisioning-1.9.0 lib/chef/provisioning/convergence_strategy.rb
chef-provisioning-1.8.1 lib/chef/provisioning/convergence_strategy.rb