tasks/mina/rbenv.rb in mina-1.2.4 vs tasks/mina/rbenv.rb in mina-1.2.5

- old
+ new

@@ -1,15 +1,17 @@ -set :rbenv_path, "$HOME/.rbenv" +# frozen_string_literal: true +set :rbenv_path, '$HOME/.rbenv' + task :'rbenv:load' do - comment %{Loading rbenv} - command %{export RBENV_ROOT="#{fetch(:rbenv_path)}"} - command %{export PATH="#{fetch(:rbenv_path)}/bin:$PATH"} - command %{ + comment %(Loading rbenv) + command %(export RBENV_ROOT="#{fetch(:rbenv_path)}") + command %(export PATH="#{fetch(:rbenv_path)}/bin:$PATH") + command %( if ! which rbenv >/dev/null; then echo "! rbenv not found" echo "! If rbenv is installed, check your :rbenv_path setting." exit 1 fi - } + ) command %{eval "$(rbenv init -)"} end