bmuschko / gradle-vagrant-plugin

Gradle plugin for managing Vagrant boxes.
Apache License 2.0
48 stars 11 forks source link

Provide environmental variables specific per task #7

Closed bjornmagnusson closed 10 years ago

bjornmagnusson commented 10 years ago

I can´t manage to figure out how to set vagrant environmental variables that are specific to a specific task. For example I would like to provide to vagrant what kind of installation process to use (e.g. a string value).

When I specify vagrant closures in the different tasks they seem to both be applied no matter what task I run.

Is this even possible with current implementation?

bmuschko commented 10 years ago

You can assign a Map to the variable environmentVariables to any task of type Vagrant (see Groovydocs).

bjornmagnusson commented 10 years ago

Thanks a lot, that solved it!