module Chef::DSL::ChefProvisioning
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.
Public Class Methods
load_chef_provisioning()
click to toggle source
# 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