Sha256: 841c17b9882590327d4eba06b51ed535c8b3674191878c30c523a4632d524583

Contents?: true

Size: 262 Bytes

Versions: 302

Compression:

Stored size: 262 Bytes

Contents

require 'travis/cli'

module Travis
  module CLI
    class Logout < ApiCommand
      description "deletes the stored API token"

      def run
        endpoint_config.delete('access_token')
        success("Successfully logged out!")
      end
    end
  end
end

Version data entries

302 entries across 302 versions & 3 rubygems

Version Path
travis-1.8.11.travis.1059.11 lib/travis/cli/logout.rb
travis-1.8.11.travis.1058.11 lib/travis/cli/logout.rb
travis-1.8.11.travis.1056.11 lib/travis/cli/logout.rb
travis-1.8.11.travis.1051.11 lib/travis/cli/logout.rb
travis-1.8.11.travis.1048.11 lib/travis/cli/logout.rb
travis-1.8.11.travis.1044.11 lib/travis/cli/logout.rb
travis-1.8.11.travis.1041.11 lib/travis/cli/logout.rb
travis-1.8.11.travis.1040.11 lib/travis/cli/logout.rb
travis-1.8.11.travis.1026.11 lib/travis/cli/logout.rb
travis-1.8.11.travis.1025.11 lib/travis/cli/logout.rb
travis-1.8.11.travis.1024.11 lib/travis/cli/logout.rb
travis-1.8.11.travis.1022.11 lib/travis/cli/logout.rb
travis-1.8.11.travis.1021.11 lib/travis/cli/logout.rb
travis-1.8.11.travis.1020.11 lib/travis/cli/logout.rb
travis-1.8.11.travis.1012.9 lib/travis/cli/logout.rb
travis-1.8.11.travis.1011.9 lib/travis/cli/logout.rb
travis-1.8.11.travis.1010.9 lib/travis/cli/logout.rb
travis-1.8.11.travis.1009.9 lib/travis/cli/logout.rb
travis-1.8.11.travis.1008.9 lib/travis/cli/logout.rb
travis-1.8.11.travis.1007.9 lib/travis/cli/logout.rb