debian-u...@howorth.org.uk wrote:
But it sounds like what...@ymail.ne.jp is doing isn't best practice
either, although I don't fully understand what they mean by "I often
change default ruby in interactive shell". If they mean 'global' then I
suspect they should be using 'local' instead. Or just possibly 'shell'.
I installed ruby only in my personal account, not the global.
Sometimes I was using the older ruby version (1.x), but sometimes I am
using the latest ruby (3.x). For example, different streaming libraries
for ruby require different versions.
For instance, I developed a ruby client for Kafka streaming, and
deployed it in crontab, and this script must use ruby 3.x version.
0 * * * * ruby kafka-consumer.rb
But one day I changed the default version in my personal path to ruby
1.x via rbenv, the crontab above should not work. This is a risk, is it?
regards
Yong