Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rvm:use not working as intended #453

Closed
NicosKaralis opened this issue Oct 11, 2016 · 1 comment
Closed

rvm:use not working as intended #453

NicosKaralis opened this issue Oct 11, 2016 · 1 comment

Comments

@NicosKaralis
Copy link

I am trying to make a deployment with rvm but it keeps ignoring the version set with invoke :'rvm:use'

this is the config

set :rvm_use_path, '/usr/local/rvm/scripts/rvm'
set :rvm_path, '/usr/local/rvm/scripts/rvm'

task :environment do
  invoke :'rvm:use', "ruby-2.3.0@gemset"
  command 'rvm list'
  command "rvm use \"ruby-2.3.0@gemset\" --create"
  command 'rvm list'
end

And this is the output, note that if I don't call rvm use the version is not altered

-----> rvm use "ruby-2.3.0@gemset" --create
       $ rvm list

       rvm rubies

       =* ruby-2.2.1 [ x86_64 ]
          ruby-2.3.0 [ x86_64 ]

       # => - current
       # =* - current && default
       #  * - default

       $ rvm use "ruby-2.3.0@gemset" --create
       Using /usr/local/rvm/gems/ruby-2.3.0 with gemset gemset
       $ rvm list

       rvm rubies

        * ruby-2.2.1 [ x86_64 ]
       => ruby-2.3.0 [ x86_64 ]

       # => - current
       # =* - current && default
       #  * - default

@d4be4st
Copy link
Member

d4be4st commented Oct 12, 2016

This is fixed in 39ddcdb

Will do a release

@d4be4st d4be4st closed this as completed Oct 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants