module Tampon::Configuration
Constants
- CONFIG_FILE_NAME
- GLOBAL_CONFIG_FILE
- PROJECT_CONFIG_FILE
Attributes
_config[R]
Public Instance Methods
ablerc()
click to toggle source
# File lib/tampon/configuration.rb, line 15 def ablerc Ablerc end
load!(filename, options={})
click to toggle source
# File lib/tampon/configuration.rb, line 19 def load!(filename, options={}) @_ablerc ||= Ablerc.load! Tampon.root end
method_missing(name, *args, &block)
click to toggle source
# File lib/tampon/configuration.rb, line 23 def method_missing(name, *args, &block) Ablerc.config.send(name.to_sym) || fail(NoMethodError, "unknown configuration root #{name}", caller) end
project_settings?()
click to toggle source
# File lib/tampon/configuration.rb, line 31 def project_settings? File.exists? PROJECT_CONFIG_FILE end
user_settings?()
click to toggle source
# File lib/tampon/configuration.rb, line 27 def user_settings? File.exists? GLOBAL_CONFIG_FILE end