On Mac OS my CI server's build agent runs as root.
I have messed with the ruby version on by defaul ruby -v
reports version 2.0, while after eval "$(rbenv init -)"
is being executed, I get a desired 2.4.
If I were to set the eval "$(rbenv init -)"
to execute each time I login to shell, I would just add it to my ~/.bash_profile.
But I assume the commands from bash_profile get executed when I actually ssh as user. How can I make sure the ruby corrector command gets executed with the system start for root?