Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
アクションを実行する前に、RVMのバージョンを確認する必要があります。簡単な質問のように思えますが、昔ながらのRubyアプリで利用できるRVM関連の変数のリストを見つけるのは困難でした。
RVMのバージョン情報は、シェルの環境変数に保存されます。次のようにRubyからrvm_versionにアクセスできます。
puts "RVM version is #{ENV['rvm_version']}"