-1

I'm trying to understand if there is the possibility to develop a vagrant plugin that permits through the vagrantfile to attach custom beahviours to vm events, such the execution of shell commands.

For example a vagrant rsync after a command like composer install has been run on the virtual machine.

Any ideas?

  • _such the execution of shell commands_ I am not sure what you're looking but isn't [shell provisioning](https://www.vagrantup.com/docs/provisioning/shell.html) execute shell commands on the vm ? – Frederic Henri Mar 18 '16 at 14:00
  • Could you clarify your question - Are you trying to trigger actions on the HOST after an event on the GUEST? – Brian Brownton Mar 18 '16 at 17:57
  • The short story is I would like to run a command on the host after I run a command on the guest. – Simone Pescina Mar 20 '16 at 20:20
  • The long story is that vb shared folders suck when using large folders. I've tried everything but no luck so I'm thinking to leave the composer vendor folder outside the shared folder and rsync them back on the host when they change. – Simone Pescina Mar 20 '16 at 20:24

1 Answers1

0

You can use the vagrant-triggers

plugin

user2282496
  • 235
  • 4
  • 13