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

Explicit support for Fullstaq Ruby #92

Merged
merged 1 commit into from
Jul 10, 2020
Merged

Explicit support for Fullstaq Ruby #92

merged 1 commit into from
Jul 10, 2020

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!

@@ -1,6 +1,7 @@
# [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.

🙌

@@ -28,14 +28,11 @@ And then execute:


# 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