Vagrant provisioning with different dependencies based on branch -


different branches , versions of codebase have different dependencies, e.g. master branch might on ruby 1.9 , use rails 4, release branch might on ruby 1.8 , use rails 3. imagine common problem, haven't seen it.

is there clean way detect/re-provision vagrant vm based on current branch (or maybe gemfile)?

currently have set "bundle install" , other stuff in provisioner, sorta works still clutters vm enviroment dependencies each branch i've ever been on.

why don't add vagrantfile , provisioning scripts repository? since part of branch then, can wish.

if switch between branches might not suite anymore since need re-provision vm every time change branch. in case suggest setup multiple vms in vagrantfile , add provisioning scripts vms in parallel. like

vagrant ruby1.8 vagrant ruby1.9 

... , on.


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -