Sha256: 2542a00810df2c3e99ac564cfbc9a4bd63f14e3fd2f58ca0c93fbde3e83596fa

Contents?: true

Size: 337 Bytes

Versions: 5

Compression:

Stored size: 337 Bytes

Contents

require 'travis/cli'

module Travis
  module CLI
    class RegenerateToken < ApiCommand
      description "regenerates the stored API token"

      def run
        token = session.regenerate_token['token']
        endpoint_config['access_token'] = token
        success("Successfully regenerated the token!")
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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