Class: VagrantPlugins::Proxy::Plugin

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-proxy/plugin.rb

Class Method Summary collapse

Class Method Details

.provision(hook) ⇒ Object



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/vagrant-proxy/plugin.rb', line 15

def self.provision(hook)
  hook.before(Vagrant::Action::Builtin::Provision, Action.setup_proxying)

  # BEGIN workaround
  #
  # Currently hooks attached to {Vagrant::Action::Builtin::Provision} are
  # not wired into the middleware return path. My current workaround is to
  # fire after anything boot related which wedges in right before the
  # actual real run of the provisioner.

  hook.after(VagrantPlugins::ProviderVirtualBox::Action::Boot, Action.setup_proxying)

  # END workaround

end