Tries to find and load the configuration file
# File lib/backup/config.rb, line 29 def load_config! unless File.exist?(@config_file) raise Errors::Config::NotFoundError, "Could not find configuration file: '#{@config_file}'." end module_eval(File.read(@config_file), @config_file) end
Setup required paths based on the given options
# File lib/backup/config.rb, line 18 def update(options = {}) root_path = options[:root_path].to_s.strip new_root = root_path.empty? ? false : set_root_path(root_path) DEFAULTS.each do |name, ending| set_path_variable(name, options[name], ending, new_root) end end
Generated with the Darkfish Rdoc Generator 2.