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