module Debci
Config = Struct.new(:data_basedir, :html_dir, :sendmail_from, :sendmail_to, :url_base, :artifacts_url_base, :config_dir, :packages_dir, :distro_name) do
if !ENV['ADTTMP'] && !system('which debci >/dev/null')
bin = File.dirname(__FILE__) + '/../../bin'
if File.exists?(bin)
ENV['PATH'] = [bin,ENV['PATH']].join(':')
end
end
def initialize
IO.popen(['debci', 'config', *members.map(&:to_s)]) do |data|
data.each_line.each do |line|
key, value = line.strip.split('=')
self.send("#{key}=", value)
end
end
end
end
end