Method: WebVac::Config.load

Defined in:
lib/webvac.rb

.loadObject

Reads/parses config and instantiates an object



40
41
42
43
44
45
46
47
48
# File 'lib/webvac.rb', line 40

def self.load
	f = ConfigPaths.find { |f| File.readable?(f) }
	cfg = if f
		JSON.parse File.read(f)
	else
		{}
	end
	new cfg
end