Sha256: 812f35b06f96a66334861a01c2181a84047f9c0b9e7d0001ce1b2109202709f8

Contents?: true

Size: 445 Bytes

Versions: 4

Compression:

Stored size: 445 Bytes

Contents

require 'sexy_settings'

SexySettings.configure do |config|
  config.path_to_default_settings = File.expand_path("config/default.yml", Dir.pwd)
  config.path_to_custom_settings = File.expand_path("config/custom.yml", Dir.pwd)
end

##
#
# Returns settings as singleton object
#
# *Example:*
#
# +settings.app_host+

def settings
  SexySettings::Base.instance
end

##
#
# Returns logger as singleton object
#

def log
  Howitzer::Log.instance
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
howitzer-1.1.1 lib/howitzer/settings.rb
howitzer-1.1.0 lib/howitzer/settings.rb
howitzer-1.0.2 lib/howitzer/settings.rb
howitzer-1.0.1 lib/howitzer/settings.rb