Initially running chef (e.g., via vagrant up) produces the following error during the chef run:
Your Ruby version is 2.1.4, but your Gemfile specified 2.2.2
Cause: The environment variable for the freshly installed Ruby version isn't yet set for the current shell
Workaround: Reprovision with vagrant provision
Solution: Find a way to properly set the environment variable for the current chef run
Initially running chef (e.g., via
vagrant up) produces the following error during the chef run:Your Ruby version is 2.1.4, but your Gemfile specified 2.2.2Cause: The environment variable for the freshly installed Ruby version isn't yet set for the current shell
Workaround: Reprovision with
vagrant provisionSolution: Find a way to properly set the environment variable for the current chef run