I need to check the RVM version before taking action. It seems like a straightforward question, but I had difficultly finding a list of RVM related variables available within a plain old Ruby app.
我需要在采取行动之前检查RVM版本。这似乎是一个简单的问题,但我很难在普通的Ruby应用程序中找到可用的RVM相关变量列表。
1 个解决方案
#1
3
RVM version information is stored in the shell's environment variables. You can access rvm_version from Ruby like so:
RVM版本信息存储在shell的环境变量中。您可以像这样从Ruby访问rvm_version:
puts "RVM version is #{ENV['rvm_version']}"
#1
3
RVM version information is stored in the shell's environment variables. You can access rvm_version from Ruby like so:
RVM版本信息存储在shell的环境变量中。您可以像这样从Ruby访问rvm_version:
puts "RVM version is #{ENV['rvm_version']}"