Top Level Namespace

Defined Under Namespace

Modules: RemoteRails

Constant Summary collapse

APP_PATH =

FIXME: rails command require APP_PATH constants.

File.expand_path('./config/application')

Instance Method Summary collapse

Instance Method Details

#chdir_to_project_rootObject

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