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.9.travis.837.4 lib/travis/cli/logout.rb
travis-1.8.8 lib/travis/cli/logout.rb
travis-1.8.9.travis.826.4 lib/travis/cli/logout.rb
travis-1.8.7.travis.823.4 lib/travis/cli/logout.rb
travis-1.8.7.travis.818.4 lib/travis/cli/logout.rb
travis-1.8.7.travis.812.4 lib/travis/cli/logout.rb
travis-1.8.6 lib/travis/cli/logout.rb
travis-1.8.7.travis.809.4 lib/travis/cli/logout.rb
travis-1.8.7.travis.808.4 lib/travis/cli/logout.rb
travis-1.8.6.travis.807.4 lib/travis/cli/logout.rb
travis-1.8.5 lib/travis/cli/logout.rb
travis-1.8.6.travis.796.4 lib/travis/cli/logout.rb
travis-1.8.5.travis.793.4 lib/travis/cli/logout.rb
travis-1.8.5.travis.791.4 lib/travis/cli/logout.rb
travis-1.8.5.travis.784.4 lib/travis/cli/logout.rb
travis-1.8.5.travis.783.4 lib/travis/cli/logout.rb
travis-1.8.5.travis.781.4 lib/travis/cli/logout.rb
travis-1.8.4 lib/travis/cli/logout.rb
travis-1.8.5.travis.779.4 lib/travis/cli/logout.rb
travis-1.8.3 lib/travis/cli/logout.rb