From ae472dece9e9989baa512d40d98a524d941fc37e Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Mon, 2 Dec 2013 22:43:25 -0200 Subject: [PATCH] core: Fix hooking when using a `Method` object as a callable on action runner --- lib/vagrant/action/runner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/action/runner.rb b/lib/vagrant/action/runner.rb index ea1aad862..fea573732 100644 --- a/lib/vagrant/action/runner.rb +++ b/lib/vagrant/action/runner.rb @@ -19,7 +19,7 @@ module Vagrant def run(callable_id, options=nil) callable = callable_id - callable = Builder.build(callable_id) if callable_id.kind_of?(Class) + callable = Builder.build(callable_id) if callable_id.kind_of?(Class) || callable_id.is_a?(Method) raise ArgumentError, "Argument to run must be a callable object or registered action." if !callable || !callable.respond_to?(:call) # Create the initial environment with the options given