Top Level Namespace
Defined Under Namespace
Modules: RemoteRails
Constant Summary collapse
- APP_PATH =
FIXME: rails command require APP_PATH constants.
File.('./config/application')
Instance Method Summary collapse
-
#chdir_to_project_root ⇒ Object
goto project root.
Instance Method Details
#chdir_to_project_root ⇒ Object
goto project root
6 7 8 9 10 11 12 13 14 |
# File 'bin/rrails', line 6 def chdir_to_project_root while not File.exists?('Gemfile') do Dir.chdir('..') break if Dir.pwd == '/' end if not File.exists?('Gemfile') raise RuntimeError.new('Can not locate project root') end end |