Method: Roby::Application#guess_app_dir

Defined in:
lib/roby/app.rb

#guess_app_dirString

Guess the app directory based on the current directory, and sets #app_dir. It will not do anything if the current directory is not in a Roby app. Moreover, it does nothing if #app_dir is already set

Returns:

  • (String)

    the selected app directory



375
376
377
378
379
# File 'lib/roby/app.rb', line 375

def guess_app_dir
    return if @app_dir

    @app_dir = self.class.guess_app_dir
end