So I found where the error was.

I was calling @app.call(env) before the capability itself. And @app.call 
would run the middleware....

Josef

Dne pondělí, 27. října 2014 17:03:33 UTC+1 Josef Strzibny napsal(a):
>
> Hi all,
>
> I need something that has been already asked here[0], but not really 
> answered,
> in regards with the new plugin API. I need a pre-halt hook. It seems that 
> using
> hook.prepend on the :machine_action_halt the hook is called after the
> machine is halted. But I need to run a shell command before that. I 
> described
> a bit more in the issue tracker[1].
>
> Is this possible with the current plugin API?
>
> Thanks a lot
> Josef
>
>
> [0] 
> https://groups.google.com/forum/#!searchin/vagrant-up/hook/vagrant-up/GugL_zw2szI/ntnlxHlW_foJ
> [1] https://github.com/mitchellh/vagrant/issues/4695
>

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to