Sha256: afec0a764d63bfea256fd9f38a578331d1b9a772e40e0c336e999ff78ca2fadb

Contents?: true

Size: 536 Bytes

Versions: 14

Compression:

Stored size: 536 Bytes

Contents

module Eyeballs
  
  module AppDetector
    
    def new_app_path
      @new_app_path ||= if rack_app?
        $stdout.puts "public folder detected, installing to public/javascripts"
        'public/javascripts'
      else
        name
      end
    end
    
    def app_path
      @app_path ||= if rack_app?
        $stdout.puts "public folder detected, installing to public/javascripts"
        'public/javascripts'
      else
        '.'
      end
    end
    
    def rack_app?
      File.exists?('public')
    end
    
  end
  
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
eyeballs-0.5.2 lib/eyeballs/app_detector.rb
eyeballs-0.5.1 lib/eyeballs/app_detector.rb
eyeballs-0.5.0 lib/eyeballs/app_detector.rb
eyeballs-0.4.2 lib/eyeballs/app_detector.rb
eyeballs-0.4.1 lib/eyeballs/app_detector.rb
eyeballs-0.3.7 lib/eyeballs/app_detector.rb
eyeballs-0.3.6.1 lib/eyeballs/app_detector.rb
eyeballs-0.3.6 lib/eyeballs/app_detector.rb
eyeballs-0.3.5 lib/eyeballs/app_detector.rb
eyeballs-0.3.4.1 lib/eyeballs/app_detector.rb
eyeballs-0.3.4 lib/eyeballs/app_detector.rb
eyeballs-0.3.3.1 lib/eyeballs/app_detector.rb
eyeballs-0.3.3 lib/eyeballs/app_detector.rb
eyeballs-0.3.2 lib/eyeballs/app_detector.rb