Vagrant::Shell::Commander
Vagrant plugin for executing arbitrary shell commands on guest. Executes the given command on all the machines on multinode environments. It also gives the option to specify a working directory.
Installation
As usual with vagrant plugins:
$ vagrant plugin install vagrant-shell-commander
Usage
To execute a command on all the machines:
$ vagrant sh -c free
Restrict the machine to run:
$ vagrant sh -c free machine1
Specify the working directory (remember to quote multiword commands):
$ vagrant sh -c 'ls -al' -d /srv/www
Get help:
$ vagrant sh -h
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Add and implement your specs
- Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request