class Pifan::Config

Public Class Methods

new() click to toggle source
# File lib/pifan/config.rb, line 7
def initialize
  @config = TTY::Config.new
  @config.filename = 'pifan'
  @config.extname = '.yml'
  @config.append_path('/etc/pifan')
  @config.append_path("#{File.dirname(__FILE__)}/../../config")
end

Public Instance Methods

read() click to toggle source
# File lib/pifan/config.rb, line 15
def read
  @config.read.deep_transform_keys { |key| key.underscore.to_sym }
end