Sha256: 8903975e976ac7c8326e6321cc299893d512e3a3e24906592380cad4a74b6754

Contents?: true

Size: 273 Bytes

Versions: 14

Compression:

Stored size: 273 Bytes

Contents

require 'travis/cli'

module Travis
  module CLI
    class Token < ApiCommand
      def run
        error "not logged in, please run #{command("login#{endpoint_option}")}" if access_token.nil?
        say access_token, "Your access token is %s"
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
travis-1.4.0 lib/travis/cli/token.rb
travis-1.3.1 lib/travis/cli/token.rb
travis-1.3.0 lib/travis/cli/token.rb
travis-1.2.8 lib/travis/cli/token.rb
travis-1.2.7 lib/travis/cli/token.rb
travis-1.2.6 lib/travis/cli/token.rb
travis-1.2.5 lib/travis/cli/token.rb
travis-1.2.4 lib/travis/cli/token.rb
travis-1.2.3 lib/travis/cli/token.rb
travis-1.2.2 lib/travis/cli/token.rb
travis-1.2.1 lib/travis/cli/token.rb
travis-1.2.0 lib/travis/cli/token.rb
travis-1.1.3 lib/travis/cli/token.rb
travis-1.1.2 lib/travis/cli/token.rb