Sha256: feed274aa0f4330cc11b4de211fa10a7f071d2baca5850d6a32550f46cd33db1

Contents?: true

Size: 316 Bytes

Versions: 6

Compression:

Stored size: 316 Bytes

Contents

# frozen_string_literal: true

require 'travis/cli'

module Travis
  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
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
travis-1.14.0 lib/travis/cli/logout.rb
travis-1.13.3 lib/travis/cli/logout.rb
travis-1.13.2 lib/travis/cli/logout.rb
travis-1.13.1 lib/travis/cli/logout.rb
travis-1.13.0 lib/travis/cli/logout.rb
travis-1.12.0 lib/travis/cli/logout.rb