module ChefCompat::CopiedFromChef
Public Class Methods
const_missing(name)
click to toggle source
# File files/lib/chef_compat/copied_from_chef.rb, line 10 def self.const_missing(name) @chef_module.const_get(name) end
extend_chef_module(chef_module, target)
click to toggle source
# File files/lib/chef_compat/copied_from_chef.rb, line 3 def self.extend_chef_module(chef_module, target) target.instance_eval do include chef_module @chef_module = chef_module def self.method_missing(name, *args, &block) @chef_module.send(name, *args, &block) end def self.const_missing(name) @chef_module.const_get(name) end end end
method_missing(name, *args, &block)
click to toggle source
# File files/lib/chef_compat/copied_from_chef.rb, line 7 def self.method_missing(name, *args, &block) @chef_module.send(name, *args, &block) end