Method: Aruba::BasicConfiguration#run_after_hook

Defined in:
lib/aruba/basic_configuration.rb

#run_after_hook(name, context, *args) ⇒ Object

Run after-hook

Parameters:

  • name (Symbol, String)

    The name of the hook

  • context (Proc)

    The context a hook should run in

  • args (Array)

    Arguments for the run of hook



163
164
165
166
167
# File 'lib/aruba/basic_configuration.rb', line 163

def run_after_hook(name, context, *args)
  name = format("%s_%s", "after_", name.to_s).to_sym

  @hooks.execute(name, context, *args)
end