emyl / vagrant-triggers

Allow the definition of arbitrary scripts that will run on the host before and/or after Vagrant commands.
MIT License
546 stars 35 forks source link

vagrant-triggers ingore `after` condition #2

Closed chrisLeeTW closed 10 years ago

chrisLeeTW commented 10 years ago

vagrant version : 1.3.5 os : centos 6.4 x86_64

I find out that vagrant-triggers ingore after condition, only execute before condition,

and I resolve this by change the code in lib/config.rb change this line => @triggers << { :action => action, :condition => :before, :options => options } with this line => @triggers << { :action => action, :condition => condition, :options => options }

and it's work!!!

emyl commented 10 years ago

Whoops, good catch, thank you!!

scraplesh commented 10 years ago

Is it somehow possible to execute shell script after vagrant up command?