<commit_before># Common usage:
#
#     task :environment do
#       invoke :'rbenv:load'
#     end
#
#     task :deploy => :environment do
#       ...
#     end
#
set_default :rbenv_path, "$HOME/.rbenv"

task :'rbenv:load' do
  queue %{
    echo "-----> Loading rbenv"
    #{echo_cmd %{export PATH="#{rbenv_path}/bin:$PATH"}}

    # Ensure that rbenv is loaded.
    if ! which -s rbenv >/dev/null; then
      echo "! rbenv not found"
      echo "! If rbenv is installed, check your 'rbenv_path' setting"
    fi

    #{echo_cmd %{eval "$(rbenv init -)"}}
  }
end<commit_msg>Make rbenv fail with an error if rbenv isn't found. See #5, #39.<commit_after># Common usage:
#
#     task :environment do
#       invoke :'rbenv:load'
#     end
#
#     task :deploy => :environment do
#       ...
#     end
#
set_default :rbenv_path, "$HOME/.rbenv"

task :'rbenv:load' do
  queue %{
    echo "-----> Loading rbenv"
    #{echo_cmd %{export PATH="#{rbenv_path}/bin:$PATH"}}

    # Ensure that rbenv is loaded.
    if ! which -s rbenv >/dev/null; then
      echo "! rbenv not found"
      echo "! If rbenv is installed, check your 'rbenv_path' setting."
      exit 1
    fi

    #{echo_cmd %{eval "$(rbenv init -)"}}
  }
end
{'fraction_non_alphanumeric': 0.15772089182493806, 'fraction_numerical': 0.0033030553261767133, 'mean_word_length': 2.4827586206896552, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7274188', 'n_tokens_mistral': 473, 'n_tokens_neox': 455, 'n_words': 127}