Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@FooBarWidget
Copy link
Contributor

Fullstaq Ruby installs Ruby to /usr/lib/fullstaq-ruby/versions (of which /usr/lib/rbenv/versions is a symlink to). The currently documented way to support this is via setting rbenv_ruby to /usr/lib/fullstaq-ruby/versions, as implemented in pull request #91. However, the drawback of this approach is that SSHKit command mappings don't work. When one calls...

execute(:ruby, '-v')

...capistrano-rbenv ends up executing $HOME/.rbenv/bin/rbenv. But Rbenv is not installed there, but in /usr/lib/rbenv/bin/rbenv.

This change adds full support for Fullstaq Ruby, in a way that makes SSHKit command mappings work.

Requires Fullstaq Ruby epic 3.3. See also:
fullstaq-ruby/server-edition#47 (comment)

@capistrano-bot
Copy link

capistrano-bot commented Jul 9, 2020

Thanks for the PR! This project lacks automated tests, which makes reviewing and approving PRs somewhat difficult. Please make sure that your contribution has not broken backwards compatibility or introduced any risky changes.

Generated by 🚫 Danger

Fullstaq Ruby installs Ruby to /usr/lib/fullstaq-ruby/versions
(of which /usr/lib/rbenv/versions is a symlink to).
The currently documented way to support this is via setting
`rbenv_ruby` to /usr/lib/fullstaq-ruby/versions, as implemented
in pull request #91. However, the drawback of this approach
is that SSHKit command mappings don't work. When one calls...

    execute(:ruby, '-v')

...capistrano-rbenv ends up executing $HOME/.rbenv/bin/rbenv.
But Rbenv is not installed there, but in /usr/lib/rbenv/bin/rbenv.

This change adds full support for Fullstaq Ruby, in a way
that makes SSHKit command mappings work.

Requires Fullstaq Ruby epic 3.3. See also:
fullstaq-ruby/server-edition#47 (comment)
Copy link
Member

@mattbrictson mattbrictson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have a way to test this, but it seems good to me. Thanks for the PR!

# [master][]

* Your contribution here!
* [#92](https://github.com/capistrano/rbenv/pull/92): Explicit support for Fullstaq Ruby - [@FooBarWidget](https://github.com/FooBarWidget)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌


# config/deploy.rb
set :rbenv_type, :user # or :system, depends on your rbenv setup
set :rbenv_type, :user # or :system, or :fullstaq (for Fullstaq Ruby), depends on your rbenv setup
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for updating the docs!

@mattbrictson mattbrictson merged commit 1fb7509 into capistrano:master Jul 10, 2020
@mattbrictson mattbrictson added the ✨ Feature Adds a new feature label Jul 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ Feature Adds a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants