You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because of the nth time installing rbenv manually I wrote the following lines, which adds cap #{env} rbenv:install to the list of available tasks. It may relate to this request (never tried the 2.x version): #51
namespace:rbenvdodesc'Install rbenv'task:installdoonroles(:web)dobeginexecute"git clone https://github.com/rbenv/rbenv.git #{fetch(:rbenv_path)}"rescueSSHKit::Command::Failedputs"rbenv already installed, updating..."execute"cd #{fetch(:rbenv_path)} && git pull"end# execute "~/.rbenv/bin/rbenv init"execute"mkdir -p #{fetch(:rbenv_path)}/plugins"beginexecute"git clone https://github.com/rbenv/ruby-build.git #{fetch(:rbenv_path)}/plugins/ruby-build"rescueSSHKit::Command::Failedputs"rbenv/ruby-build plugin already installed, updating..."execute"cd #{fetch(:rbenv_path)}/plugins/ruby-build && git pull"endrbenv_ruby=File.read('.ruby-version').stripexecute"#{fetch(:rbenv_path)}/bin/rbenv install -s #{fetch(:rbenv_ruby)||rbenv_ruby}"execute"#{fetch(:rbenv_path)}/bin/rbenv global #{fetch(:rbenv_ruby)||rbenv_ruby}"execute"#{fetch(:rbenv_path)}/shims/gem install bundler --no-document"iffetch(:rbenv_ruby).nil?puts"\nPlease uncomment the line `# set :rbenv_ruby, File.read('.ruby-version').strip` to enable capistrano rbenv"endendendend
I'm happy to prepare a pull request...
The text was updated successfully, but these errors were encountered:
evazion
added a commit
to danbooru/danbooru
that referenced
this issue
Aug 14, 2019
Upgrade procedure:
$ echo 2.6.3 > .ruby-version
# upgrade ruby-build to know about the latest ruby versions.
# see also: github.com/rkh/rbenv-update
$ cd ~/.rbenv/plugins/ruby-build && git pull
# install the version of ruby specified in .ruby-version.
# see also: github.com/capistrano/rbenv/issues/83
$ rbenv install --skip-existing
# update the shell to use the latest version of ruby by default.
$ rbenv global 2.6.3
# update rubygems and bundler
$ gem update --system
# update the lockfile to use the latest version of bundler
$ bundle update --bundler
Because of the nth time installing rbenv manually I wrote the following lines, which adds cap #{env} rbenv:install to the list of available tasks. It may relate to this request (never tried the 2.x version): #51
I'm happy to prepare a pull request...
The text was updated successfully, but these errors were encountered: