That's solving a different use-case (though it's good to keep in mind). This code's for deploying to Heroku from Travis (and storing the keys in a format that Travis can access from), while that's for accessing other keys like AWS from within your Heroku app.