class Pith::ConfigProvider
Attributes
config[R]
Public Class Methods
new(project)
click to toggle source
# File lib/pith/config_provider.rb, line 10 def initialize(project) @project = project @last_load_mtime = :never sync end
Public Instance Methods
sync()
click to toggle source
# File lib/pith/config_provider.rb, line 18 def sync config_mtime = config_file.mtime rescue nil unless config_mtime == @last_load_mtime @last_load_mtime = config_mtime @project.logger.debug "loading config" @config = Pith::Config.load(config_file) notify_observers end end
Private Instance Methods
config_file()
click to toggle source
# File lib/pith/config_provider.rb, line 30 def config_file @project.input_dir + "_pith/config.rb" end