def configure opts = {}
user_path = CONFIG_F
dir, file = File.split(user_path)
@userconfig = if test(?e, user_path) then
YAML.load_file(user_path)
else
CONFIG
end.merge(opts)
@autoconfig_path = File.join(dir, file.sub(/^user/, 'auto'))
@autoconfig = if test(?e, @autoconfig_path) then
YAML.load_file(@autoconfig_path)
else
CONFIG["rubyforge"].dup
end
@autoconfig["type_ids"] = CONFIG['rubyforge']['type_ids'].dup
raise "no <username>" unless @userconfig["username"]
raise "no <password>" unless @userconfig["password"]
raise "no <cookie_jar>" unless @userconfig["cookie_jar"]
self
end