# File lib/daemon_kit/config.rb, line 22 def load( config ) config = config.to_s config += '.yml' unless config =~ /\.yml$/ path = File.join( DAEMON_ROOT, 'config', config ) raise ArgumentError, "Can't find #{path}" unless File.exists?( path ) new( YAML.load_file( path ) ) end