lib/travis/cli/logout.rb in travis-1.8.11.travis.1059.11 vs lib/travis/cli/logout.rb in travis-1.8.11.travis.1081.9
- old
+ new
@@ -4,9 +4,10 @@
module CLI
class Logout < ApiCommand
description "deletes the stored API token"
def run
+ session.logout
endpoint_config.delete('access_token')
success("Successfully logged out!")
end
end
end