Method: Roby::Application#on_shutdown
- Defined in:
- lib/roby/app.rb
#on_shutdown(user: false, &block) ⇒ Object
Registers a callback to perform cleanup just after an execution
This is called just after plan teardown. Unlike all the other cleanup handlers, it will be called during test teardown as well
These callbacks MUST be idempotent
1324 1325 1326 1327 1328 1329 1330 |
# File 'lib/roby/app.rb', line 1324 def on_shutdown(user: false, &block) unless block raise ArgumentError, "missing expected block argument" end add_lifecyle_hook(shutdown_handlers, block, user: user) end |