Vm::Watcher
Continuous VM provisioning.
Installation
Or install it yourself as:
$ gem install vm-watcher
Usage
-
Set up a VM using Vagrant.
-
Write your
script/provision
script, for instance to use chef-solo:chef-solo -j dna.json -c solo.rb
-
Run
vm-watcher
from the terminal. It executes the provisioning script inside the VM every time one of the files change.
There a several options that you can modify:
--watch: pattern that matches the files to watch, `Dir.pwd/**/*` by default.
--script: script to execute when one of those files change, `script/provision` by default.
--interval: sleep time before each check, 1 sec by default.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request