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

Version Path
nifty-0.2.12 lib/nifty/settings.rb
nifty-0.2.11 lib/nifty/settings.rb
nifty-0.2.10 lib/nifty/settings.rb
nifty-0.2.9 lib/nifty/settings.rb
nifty-0.2.8 lib/nifty/settings.rb
nifty-0.2.7 lib/nifty/settings.rb
nifty-0.2.6 lib/nifty/settings.rb
nifty-0.2.5 lib/nifty/settings.rb
nifty-0.2.4 lib/nifty/settings.rb
nifty-0.2.3 lib/nifty/settings.rb
nifty-0.2.2 lib/nifty/settings.rb