Sha256: 1c97f17a8259df5a8f47fc44a5a848971c82d2a2c9027a90faadf6f97f1653c7
Contents?: true
Size: 591 Bytes
Versions: 11
Compression:
Stored size: 591 Bytes
Contents
require 'settingslogic' # Class for configuration management # # @author Michal Kimle class Nifty::Settings < Settingslogic CONFIGURATION = 'nifty.yml' # three possible configuration file locations in order by preference # if configuration file is found rest of the locations are ignored source "#{ENV['HOME']}/.nifty/#{CONFIGURATION}"\ if File.exist?("#{ENV['HOME']}/.nifty/#{CONFIGURATION}") source "/etc/nifty/#{CONFIGURATION}"\ if File.exist?("/etc/nifty/#{CONFIGURATION}") source "#{File.dirname(__FILE__)}/../../config/#{CONFIGURATION}" namespace 'production' end
Version data entries
11 entries across 11 versions & 1 rubygems