module Garcon::Resource::ClassMethods

Public Instance Methods

blender() click to toggle source

Combine a resource and provider class for quick and easy oven baked goodness. Never has cooking been this fun since the invention of the grocery store!

# File lib/garcon/chef_inclusions.rb, line 51
def blender
  include Garcon::Resource::Blender
end
included(descendant) click to toggle source

Hook called when module is included, extends a descendant with class and instance methods.

@param [Module] descendant

the module or class including Garcon

@return [self]

@api private

Calls superclass method
# File lib/garcon/chef_inclusions.rb, line 64
def included(descendant)
  super
  descendant.extend ClassMethods
end
interpolate(namespace = nil) click to toggle source

Interpolate node attributes automatically.

# File lib/garcon/chef_inclusions.rb, line 43
def interpolate(namespace = nil)
  node.set[namespace] = interpolate(Garcon.config.stash[namespace])
end