Module: Chef::DSL::Cheffish

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

Overview

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

Class Method Summary collapse

Class Method Details

.load_cheffishObject



56
57
58
59
60
61
62
# File 'lib/chef/dsl/cheffish.rb', line 56

def self.load_cheffish
  # Remove all cheffish methods; they will be added back in by cheffish
  public_instance_methods(false).each do |method_name|
    remove_method(method_name)
  end
  require "cheffish"
end