Sha256: 267fcf5ea95bb739832538d1e737736d64464f30592c6f9f50b89b84d84653dc
Contents?: true
Size: 620 Bytes
Versions: 6
Compression:
Stored size: 620 Bytes
Contents
# load configuration information from $HOME/.whimsy require 'yaml' module ASF class Config @home = ENV['HOME'] || Dir.pwd @config = YAML.load_file("#@home/.whimsy") rescue {} # default :svn for backwards compatibility @config[:svn] ||= ['/home/whimsysvn/svn/*'] # add libraries to RUBYLIB, load path (@config[:lib] || []).reverse.each do |lib| next unless File.exist? lib ENV['RUBYLIB']=([lib] + ENV['RUBYLIB'].to_s.split(':')).uniq.join(':') $LOAD_PATH.unshift lib unless $LOAD_PATH.include? lib end def self.get(value) @config[value] end end end
Version data entries
6 entries across 6 versions & 1 rubygems