Sha256: 2137cd8cf9fdee766a30ccf1d56f41b9b71822202071463dde8535afd5eb48ab
Contents?: true
Size: 547 Bytes
Versions: 20
Compression:
Stored size: 547 Bytes
Contents
# frozen_string_literal: true module LearnTest class UsernameParser def self.get_username parser = LearnTest::NetrcInteractor.new username = parser.username user_id = parser.user_id if !LearnTest::LearnOauthTokenParser.get_learn_oauth_token && (!username || user_id == 'none') print 'Enter your github username: ' username = $stdin.gets.strip user_id = LearnTest::GithubInteractor.get_user_id_for(username) parser.write(username, user_id) end username end end end
Version data entries
20 entries across 20 versions & 1 rubygems