class Persey::Adapters::Json

Public Class Methods

load(file, env) click to toggle source
# File lib/persey/adapters/json.rb, line 7
def load(file, env)
  begin
    json = File.new(file, 'r')
    raw_hash = JSON::Stream::Parser.parse(json)
    symbolize_keys(raw_hash)
  rescue
    puts "FATAL: Error while process config from file '#{file}'"
  end
end