Method: Aruba::BasicConfiguration#run_before_hook

Defined in:
lib/aruba/basic_configuration.rb

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

Run before-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



131
132
133
134
135
# File 'lib/aruba/basic_configuration.rb', line 131

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

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