Module: AppFlight::Utils
- Defined in:
- lib/appflight/utils.rb
Class Method Summary collapse
Class Method Details
.gem_webdir ⇒ Object
5 6 7 8 9 10 |
# File 'lib/appflight/utils.rb', line 5 def self.gem_webdir dirs = ["#{File.dirname(File.expand_path($0))}/../web", "#{Gem.dir}/gems/#{AppFlight::NAME}-#{AppFlight::VERSION}/web"] dirs.each {|path| return path if Dir.exists?(path) } raise "all paths are invalid: #{dirs}" end |