Sha256: 81251c9ca0cf183baeafc2b4b86bd7de06c66ec4a73ac329621cd323639229ec

Contents?: true

Size: 527 Bytes

Versions: 15

Compression:

Stored size: 527 Bytes

Contents

require 'settingslogic'

class Comfy::Settings < Settingslogic
  CONFIGURATION = 'comfy.yml'

  # three possible configuration file locations in order by preference
  # if configuration file is found rest of the locations are ignored
  source "#{ENV['HOME']}/.comfy/#{CONFIGURATION}"\
 if File.exist?("#{ENV['HOME']}/.comfy/#{CONFIGURATION}")
  source "/etc/comfy/#{CONFIGURATION}"\
 if File.exist?("/etc/comfy/#{CONFIGURATION}")
  source "#{File.dirname(__FILE__)}/../../config/#{CONFIGURATION}"

  namespace 'production'
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
comfy-0.2.14 lib/comfy/settings.rb
comfy-0.2.13 lib/comfy/settings.rb
comfy-0.2.12 lib/comfy/settings.rb
comfy-0.2.11 lib/comfy/settings.rb
comfy-0.2.10 lib/comfy/settings.rb
comfy-0.2.9 lib/comfy/settings.rb
comfy-0.2.8 lib/comfy/settings.rb
comfy-0.2.7 lib/comfy/settings.rb
comfy-0.2.6 lib/comfy/settings.rb
comfy-0.2.5 lib/comfy/settings.rb
comfy-0.2.4 lib/comfy/settings.rb
comfy-0.2.3 lib/comfy/settings.rb
comfy-0.2.2 lib/comfy/settings.rb
comfy-0.2.1 lib/comfy/settings.rb
comfy-0.2.0 lib/comfy/settings.rb