Sha256: 45da64d7950c289b843fd686acad1365d14ea28ba8435f1c5f574817192c475c

Contents?: true

Size: 839 Bytes

Versions: 14

Compression:

Stored size: 839 Bytes

Contents

#!/usr/bin/env ruby
# encoding: utf-8
# CONFIG -- ydim -- 12.01.2006 -- hwyss@ywesee.com

require 'rclconf'
require 'fileutils'

module YDIM
	class Client
		home_dir = ENV['HOME'] || '/tmp'
		ydim_default_dir = File.join(home_dir, '.ydim')
		default_config_files = [
			File.join(ydim_default_dir, 'ydim.yml'),
			'/etc/ydim/ydim.yml',
		]
		defaults = {
			'client_url'					=> 'druby://localhost:0',
			'config'							=> default_config_files,
			'private_key'					=> File.join(home_dir, '.ssh', 'id_dsa'),
			'user'								=> nil,
			'server_url'					=> 'druby://localhost:12375', 
			'currency'						=> 'EUR',
			'invoice_description'	=> 'Auto-Invoice',
      'mail_charset'        => 'iso-8859-1',
			'payment_period'			=> 30,
		}
		config = RCLConf::RCLConf.new(ARGV, defaults)
		config.load(config.config)

		CONFIG = config
	end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ydim-1.1.4 lib/ydim/config.rb
ydim-1.1.3 lib/ydim/config.rb
ydim-1.1.2 lib/ydim/config.rb
ydim-1.1.1 lib/ydim/config.rb
ydim-1.1.0 lib/ydim/config.rb
ydim-1.0.9 lib/ydim/config.rb
ydim-1.0.8 lib/ydim/config.rb
ydim-1.0.7 lib/ydim/config.rb
ydim-1.0.6 lib/ydim/config.rb
ydim-1.0.5 lib/ydim/config.rb
ydim-1.0.4 lib/ydim/config.rb
ydim-1.0.3 lib/ydim/config.rb
ydim-1.0.2 lib/ydim/config.rb
ydim-1.0.1 lib/ydim/config.rb