Sha256: 9f026c6a49774d6d3cacb06ffb77d28b74805b20b3ba10a907ae962f94dd7615

Contents?: true

Size: 309 Bytes

Versions: 5

Compression:

Stored size: 309 Bytes

Contents

require 'travis/cli'

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

      def run
        session.remove_token
        endpoint_config['access_token'] = nil
        success("Successfully removed the access token!")
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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