Bindler is deprecated, how to hard require plugins?

98 views
Skip to first unread message

Reuben Avery

unread,
Jul 10, 2014, 1:26:36 PM7/10/14
to vagra...@googlegroups.com
I was pleased to discover Bindler but it's abandoned and doesn't seem to want to work

Running Bindler 0.1.4 on Vagrant 1.6.3--

$ vagrant bindler setup
Vagrant failed to initialize at a very early stage:

The plugins failed to load properly. The error message given is
shown below.

cannot load such file -- /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/commands/plugin/state_file

Too bad..  

I'm wondering then if there's a way in my Vagrantfile to raise an error condition and abort if the has_plugin? check fails.  Anybody know?

(This is actually a re-statement of an earlier question I've been wondering, is there a way to tag on to Vagrant's output during load and/or provisioning with notice/warning/errors?)

bmur...@coredial.com

unread,
Jul 10, 2014, 2:56:01 PM7/10/14
to vagra...@googlegroups.com
Add something like this to your Vagrantfile:

unless Vagrant.has_plugin?('vagrant-host')
  raise 'Required plugin vagrant-host is not found.'
end

This will prevent a vagrant up from occurring until the plugin is installed & found.

Reuben Avery

unread,
Jul 10, 2014, 3:03:18 PM7/10/14
to vagra...@googlegroups.com
Yeah, I was hoping for something a bit nicer than that.  I’d like to tie in to the message queue that Vagrant builds, adding a message like
==> default: Error: Vagrant module “foo” is required for provisioning.  Aborting.


--
You received this message because you are subscribed to a topic in the Google Groups "Vagrant" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vagrant-up/_-m6VExHqJs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vagrant-up+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Torben Knerr

unread,
Jul 10, 2014, 3:48:09 PM7/10/14
to vagra...@googlegroups.com
I would love to see bindler coming back to newer vagrant versions! 

Bindler I miss you :-/

​P.S.: I guess we have to nag @mitchellh a bit more about this ;-)



--
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 vagrant-up+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages