Method: Roby::Application#load_plugin_file
- Defined in:
- lib/roby/app.rb
#load_plugin_file(appfile) ⇒ Object
Load the given Roby plugin file. It is usually called app.rb, and should call register_plugin with the relevant information
Note that the file should not do anything yet. The actions required to have a functional plugin should be taken only in the block given to register_plugin or in the relevant plugin methods.
1367 1368 1369 1370 1371 1372 1373 1374 |
# File 'lib/roby/app.rb', line 1367 def load_plugin_file(appfile) begin require appfile rescue Roby.warn "cannot load plugin #{appfile}: #{$!.}\n" end Roby.info "loaded plugin #{appfile}" end |