# File lib/gem_plugin.rb, line 229 229: def config(gem_name, options={}) 230: config_file = Manager.instance.resource(gem_name, "/defaults.yaml") 231: if config_file 232: begin 233: defaults = YAML.load_file(config_file) 234: return defaults.merge(options) 235: rescue 236: raise "Error loading config #{config_file} for gem #{gem_name}" 237: end 238: else 239: return options 240: end 241: end