Finding the current roaming operation from within a Vagrantfile?
I'm looking for a way to find the current "vagrant" subcommand (eg, "up", "provision") from within a Vagrantfile.
I know I can get ARGV (for example, getting command line arguments within a Vagrantfile ), but a simple search for "up" and "provide" in ARGV can accidentally get plugin subcommand arguments.
Is there a way to find out from within the Vagrantfile which the Vagrant team is going to execute?
The motivation is to avoid the time-consuming operations required to "submit" and "up", but redundant for other sub-teams (for example, getting information from AWS).
+3
source to share
No one has answered this question yet
See similar questions:
or similar: