Method: Site.get_site_paths
- Defined in:
- lib/brisk/server/site.rb
.get_site_paths(config, site) ⇒ Object
82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/brisk/server/site.rb', line 82 def self.get_site_paths(config, site) site_path = nil config['paths'].each do |path| if File.directory?("/#{path}/#{site}") if File.file?("/#{path}/#{site}/config.ru") site_path = "/#{path}/#{site}" end end end site_path end |