Parent

Chef::Expander::ChefCompatibleConfig

Attributes

config_hash[R]

Public Class Methods

new() click to toggle source
# File lib/chef/expander/configuration.rb, line 52
def initialize
  @config_hash = {}
end

Public Instance Methods

load(file) click to toggle source
# File lib/chef/expander/configuration.rb, line 56
def load(file)
  file = File.expand_path(file)
  instance_eval(IO.read(file), file, 1) if File.readable?(file)
end
method_missing(method_name, *args, &block) click to toggle source
# File lib/chef/expander/configuration.rb, line 61
def method_missing(method_name, *args, &block)
  if args.size == 1
    @config_hash[method_name] = args.first
  elsif args.empty?
    @config_hash[method_name] or super
  else
    super
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.