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

environment_load not supported #84

Closed nkakouros closed 6 years ago

nkakouros commented 7 years ago

I saw this in the code:

# Triggers don't fire on environment load and unload. return if [:environment_load, :environment_plugins_loaded, :environment_unload].include?(@env[:action_name])

Why is that? As a use case it would be really handy to run some staff before any VM related tasks run, eg a script to check or set environment variables. Is this possible now (not setting env variables, but triggering before any vagrant task)?