I'm new to Vagrant and don't fully understand the middleware pattern, but I 
have a middleware action - a class MyAction with an initialize(app) and a 
call(env) method - that I'd like to run at a specific point in the 
provisioning process.

The following runs the action, but it runs it right at the beginning of the 
vagrant provision command, not when I want.

def self.action_provision
  Vagrant::Action::Builder.new.tap do |b|
    b.use Provision
    b.use MyAction
  end
end

Is there a way to run that action at a specific point in the provisioning 
process?

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/247ff4af-b0f1-4bc6-9add-b6399d4e2ff9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to