Sha256: 313f877de4bda839252061e0a091d0f5f737383686553e9354f590722a064f73
Contents?: true
Size: 1.27 KB
Versions: 2
Compression:
Stored size: 1.27 KB
Contents
#!/usr/bin/env ruby # etc/config -- ydim -- 12.01.2006 -- hwyss@ywesee.com require 'rclconf' require 'digest/md5' module YDIM module Html module Util ydim_default_dir = '/var/ydim/' if(home = ENV['HOME']) ydim_default_dir = File.join(home, '.ydim') end default_config_files = [ File.join(ydim_default_dir, 'ydim-htmld.yml'), '/etc/ydim/ydim-htmld.yml', ] defaults = { 'config' => default_config_files, 'client_url' => 'druby://localhost:0', 'currency' => 'CHF', 'email' => 'zdavatz@ywesee.com', 'html_url' => 'druby://localhost:12376', 'md5_pass' => nil, 'proxy_url' => 'druby://localhost:0', 'server_url' => 'druby://localhost:12375', 'root_key' => '/etc/ydim/id_dsa', 'user' => nil, 'ydim_dir' => nil, } config = RCLConf::RCLConf.new(ARGV, defaults) config.load(config.config) CONFIG = config end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ydim-html-1.0.3 | etc/config.rb |
ydim-html-1.0.2 | etc/config.rb |