Method: Roby::Application#register_app

Defined in:
lib/roby/app.rb

#register_app(path, where: :push) ⇒ Object

Register another Roby app

The call both adds the app to the search path

Parameters:

  • path (String)

    the path to the Roby app dir itselfc



461
462
463
464
465
466
467
# File 'lib/roby/app.rb', line 461

def register_app(path, where: :push)
    path = File.expand_path(path, app_dir)
    app_name = File.basename(path)
    send("#{where}_search_path", path)

    @registered_apps[app_name] = path
end