The hook callable has to be an Action builder so the hooks are called

This commit is contained in:
Mitchell Hashimoto 2013-02-22 15:28:48 -08:00
parent 29600d3d06
commit 3b2a82003e
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ module Vagrant
# @param [Symbol] name Name of the hook.
def hook(name)
@logger.info("Running hook: #{name}")
callable = Proc.new {}
callable = Action::Builder.new
action_runner.run(callable, :action_name => name)
end