Method: Roby::Application#on_setup

Defined in:
lib/roby/app.rb

#on_setup(user: false, &block) ⇒ Object

Declares a block that should be executed when the Roby app is begin setup



1269
1270
1271
1272
1273
1274
1275
# File 'lib/roby/app.rb', line 1269

def on_setup(user: false, &block)
    unless block
        raise ArgumentError, "missing expected block argument"
    end

    add_lifecyle_hook(setup_handlers, block, user: user)
end