Skip to content

Commit

Permalink
Merge pull request #70 from ivanovaleksey/update-validation-message
Browse files Browse the repository at this point in the history
Update validation message if rbenv_ruby is not set
  • Loading branch information
mattbrictson authored Apr 7, 2017
2 parents 4483faf + 46ffb9f commit 557ff98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/capistrano/tasks/rbenv.rake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace :rbenv do
on release_roles(fetch(:rbenv_roles)) do
rbenv_ruby = fetch(:rbenv_ruby)
if rbenv_ruby.nil?
warn "rbenv: rbenv_ruby is not set"
info 'rbenv: rbenv_ruby is not set; ruby version will be defined by the remote hosts via rbenv'
end

# don't check the rbenv_ruby_dir if :rbenv_ruby is not set (it will always fail)
Expand Down Expand Up @@ -35,9 +35,9 @@ namespace :load do
set :rbenv_path, -> {
rbenv_path = fetch(:rbenv_custom_path)
rbenv_path ||= if fetch(:rbenv_type, :user) == :system
"/usr/local/rbenv"
'/usr/local/rbenv'
else
"$HOME/.rbenv"
'$HOME/.rbenv'
end
}

Expand Down

0 comments on commit 557ff98

Please sign in to comment.