Ad hoc vagrant commands abstracted through yaml, enabled via .vagrantplugins

In my need to define custom vagrant commands,

I stumbled upon the undocumented Vagrant **.vagrantplugins** feature.

I hijacked the file to leverage ruby [meta\-programming](http://ruby-metaprogramming.rubylearning.com/html/ruby_metaprogramming_3.html) and [yaml](http://yaml.org/YAML_for_ruby.html) parsing to abstract away ruby code exposed as vagrant commands.

Feel free to check out the code on github: [https://github.com/iamthedingus/vagrant\-cmdz.git](https://github.com/iamthedingus/vagrant-cmdz.git)

Leave a Comment