core: style nitpick
/cc @fgrehm - I prefer this style. :) No big deal, just pointing it out
This commit is contained in:
parent
1ea39ab605
commit
49b14114a2
|
@ -273,9 +273,10 @@ module Vagrant
|
|||
#
|
||||
# @param [Symbol] name Name of the hook.
|
||||
# @param [Action::Runner] action_runner A custom action runner for running hooks.
|
||||
def hook(name, runner = action_runner)
|
||||
def hook(name, runner=nil)
|
||||
@logger.info("Running hook: #{name}")
|
||||
callable = Action::Builder.new
|
||||
runner ||= action_runner
|
||||
runner.run(
|
||||
callable,
|
||||
:action_name => name,
|
||||
|
|
Loading…
Reference in New Issue