Last Updated: March 02, 2016
·
421
· 4giedrius

Heroku toolbelt problem

If you are getting following error while trying to use Heroku Toolbelt, it means that you need to upgrade Ruby.

/usr/local/heroku/lib/heroku/helpers.rb:13:in `home_directory': undefined method `home' for Dir:Class (NoMethodError) from /usr/local/heroku/lib/heroku/updater.rb:22:in `updated_client_path' from /usr/local/heroku/lib/heroku/updater.rb:170:in `inject_libpath' from /usr/local/heroku/bin/heroku:19

rvm to the rescue:

curl -L get.rvm.io | bash -s stable

source /etc/profile.d/rvm.sh

rvm install 2.2.2