5/20/2014 - 6:25 AM

troubleshooting access

troubleshooting access

# first, log in
bundle exec travis login

# wanna see the token ?
bundle exec travis token

# check that this token tokens
curl -H "Authorization: token $(bundle exec travis token)"

# Works ?????

# Now go Ruby
bundle exec pry
require 'travis/pro'
Travis::Pro.access_token = `bundle exec travis token`.chomp

>> Travis::Client::NotLoggedIn: invalid access token
>> from /usr/local/opt/rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/travis-1.6.11/lib/travis/client/session.rb:217:in `raw'