Hey there, I believe you can accomplish this using the ruby option <https://www.vagrantup.com/docs/triggers/configuration#ruby>. For example:
``` config.trigger.after :all do |trigger| trigger.info = "Trigger trigger" trigger.ruby do |env, machine| puts env.cwd end end ``` On Monday, June 29, 2020 at 6:42:38 AM UTC-5 Prénom Nom wrote: > Hello everybody, > i'm trying to play with Vagrantfile triggers, and i wonder if there are > some ways to get current vagrant config, such as "cwd" or "dotfile_path". > Perhaps something based on Vagrant::Environment, juste like he "@env" > variable available in plugins commands. > > Thx :) > -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/hashicorp/vagrant/issues Discuss: https://discuss.hashicorp.com/c/vagrant/24 --- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/b001350c-d40f-4d6e-a7bf-9d265eabe7cbn%40googlegroups.com.