Module: Chef::DSL::ChefProvisioning

Included in:
Resources
Defined in:
lib/chef/dsl/chef_provisioning.rb

Overview

Lazy activation for the chef-provisioning gem. Specifically, we set up methods for each resource and DSL method in chef-provisioning which, when invoked, will require ‘chef-provisioning’ (which will define the actual method) and then call the method chef-provisioning defined.

Class Method Summary collapse

Class Method Details

.load_chef_provisioningObject



48
49
50
51
52
53
54
# File 'lib/chef/dsl/chef_provisioning.rb', line 48

def self.load_chef_provisioning
  # Remove all chef-provisioning methods; they will be added back in by chef-provisioning
  public_instance_methods(false).each do |method_name|
    remove_method(method_name)
  end
  require "chef/provisioning"
end