Sha256: 628186c363d8594c0e7696bda44e507908de21953c37436daf4f76ae0cb99fd4

Contents?: true

Size: 878 Bytes

Versions: 40

Compression:

Stored size: 878 Bytes

Contents

require 'chef/provisioning/convergence_strategy'
require 'pathname'
require 'cheffish'

class Chef
module Provisioning
  class ConvergenceStrategy
    class NoConverge < ConvergenceStrategy
      def chef_server
        @chef_server ||= convergence_options[:chef_server] || Cheffish.default_chef_server(config)
      end

      def setup_convergence(action_handler, machine)
      end

      def converge(action_handler, machine)
      end

      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
    end
  end
end
end

Version data entries

40 entries across 40 versions & 1 rubygems

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