Method: Roby::Application.is_app_dir?

Defined in:
lib/roby/app.rb

.is_app_dir?(test_dir) ⇒ Boolean

Tests if the given directory looks like the root of a Roby app

Parameters:

  • test_dir (String)

    the path to test

Returns:

  • (Boolean)


335
336
337
338
339
340
# File 'lib/roby/app.rb', line 335

def self.is_app_dir?(test_dir)
    File.file?(File.join(test_dir, "config", "app.yml")) ||
        File.directory?(File.join(test_dir, "models")) ||
        File.directory?(File.join(test_dir, "scripts", "controllers")) ||
        File.directory?(File.join(test_dir, "config", "robots"))
end