`rvm do ruby --version` was removed

Open
#76 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
ruby
Domain
devops

Research direction

Start with the task definitions behind rvm:check and deploy:check, then trace the command that invokes rvm do ruby --version. Update the check so it uses a supported RVM invocation, and confirm the affected Capistrano task completes successfully without the exit-status failure.

Written by the indexing model from the issue text.

Description

If I run the rvm:check or deploy:check tasks I get the following failed output:

#> cap staging deploy:check
DEBUG [7dcfdae8] Running /usr/local/rvm/bin/rvm version as <server>
DEBUG [7dcfdae8] Command: /usr/local/rvm/bin/rvm version
DEBUG [7dcfdae8]    rvm 1.27.0 (latest) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]
DEBUG [7dcfdae8]
DEBUG [7dcfdae8] Finished in 3.330 seconds with exit status 0 (successful).
rvm 1.27.0 (latest) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]
DEBUG [a09777ec] Running /usr/local/rvm/bin/rvm current as <server>
DEBUG [a09777ec] Command: /usr/local/rvm/bin/rvm current
DEBUG [a09777ec]    system
DEBUG [a09777ec] Finished in 0.599 seconds with exit status 0 (successful).
system
DEBUG [2174bae7] Running /usr/local/rvm/bin/rvm  do ruby --version as <server>
DEBUG [2174bae7] Command: /usr/local/rvm/bin/rvm  do ruby --version
DEBUG [2174bae7]    `rvm do ruby --version` was removed, use `rvm 1.9.2,1.9.3 do ruby --version` or `rvm all do ruby --version` instead.
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as <server>: ruby exit status: 1
ruby stdout: `rvm do ruby --version` was removed, use `rvm 1.9.2,1.9.3 do ruby --version` or `rvm all do ruby --version` instead.
ruby stderr: Nothing written

SSHKit::Command::Failed: ruby exit status: 1
ruby stdout: `rvm do ruby --version` was removed, use `rvm 1.9.2,1.9.3 do ruby --version` or `rvm all do ruby --version` instead.
ruby stderr: Nothing written

Tasks: TOP => rvm:check
Dominant language
Ruby
Stars
140
Forks
44
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from capistrano/rvm

All issues in capistrano/rvm

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.