Sha256: d6c73b26c3140a2c8f6606ce0d60d488f21bab47e67c7dd535c9e97167cdd10f

Contents?: true

Size: 921 Bytes

Versions: 3

Compression:

Stored size: 921 Bytes

Contents

#!/usr/bin/env ruby
# encoding: utf-8

require 'rclconf'
require 'ydim/html'

module YDIM
	module Html
ydim_default_dir = '/var/ydim/'
if(home = ENV['HOME'])
  ydim_default_dir = File.join(home, '.ydim')
end
default_config_files = [
 'etc/ydim-htmld.yml',
  File.join(ydim_default_dir, 'ydim-htmld.yml'),
  '/etc/ydim/ydim-htmld.yml',
]
defaults = {
  'client_url'			=> 'druby://localhost:0', 
  'config'					=> default_config_files,
  'currency'				=> 'CHF',
  'email'						=> nil,
  'html_url'				=> 'druby://localhost:12376',
  'http_server'     => 'http://localhost',
  'log_file'        => $stdout,
  'log_level'       => 'DEBUG',
  'md5_pass'				=> nil,
  'proxy_url'				=> 'druby://localhost:0',
  'server_url'			=> 'druby://localhost:12375', 
  'root_key'				=> nil,
  'user'						=> nil,
  'ydim_dir'				=> ydim_default_dir,
}
@config = RCLConf::RCLConf.new(ARGV, defaults)
@config.load(@config.config)
	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ydim-html-1.0.3 lib/ydim/html/config.rb
ydim-html-1.0.2 lib/ydim/html/config.rb
ydim-html-1.0.1 lib/ydim/html/config.rb