lib/persey/adapters/toml.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'toml'

module Persey
  module Adapters
    class Toml < Persey::Adapters::Base
      class << self
        def load(file, env)
          begin
            raw_hash = TOML.load_file(file)
            symbolize_keys(raw_hash)
          rescue
            puts "FATAL: Error while process config from file '#{file}'"
          end
        end
      end
    end
  end
end