class Pansophy::ConfigPath
Public Class Methods
find!()
click to toggle source
# File lib/pansophy/config_synchronizer.rb, line 45 def self.find! # TODO: Extract this in a Rails specific gem return Rails.root.join('config') if defined?(Rails) return sinatra_root_pathname.join('config') if defined?(Sinatra::Application) fail ConfigSynchronizerError, 'Could not determine location of config folder' end
Private Class Methods
sinatra_root_pathname()
click to toggle source
# File lib/pansophy/config_synchronizer.rb, line 55 def self.sinatra_root_pathname Pathname.new(Sinatra::Application.settings.root) end