diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2026-02-06 16:54:19 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2026-02-06 08:30:22 +0000 |
| commit | f841f9fc9459d033fa7fb18caaa6e1eb3ac7195d (patch) | |
| tree | b45cc461e22429d160eee55716f2e02a710a8410 /lib | |
| parent | 2d054ef64de31a3306fa9cbaea68cbb5aa0faf21 (diff) | |
[ruby/rubygems] Print message when signing in with an existing API key
https://github.com/ruby/rubygems/commit/b4a8adbb4d
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/rubygems/gemcutter_utilities.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/rubygems/gemcutter_utilities.rb b/lib/rubygems/gemcutter_utilities.rb index afe7957f43..9c22c14fad 100644 --- a/lib/rubygems/gemcutter_utilities.rb +++ b/lib/rubygems/gemcutter_utilities.rb @@ -154,10 +154,11 @@ module Gem::GemcutterUtilities def sign_in(sign_in_host = nil, scope: nil) sign_in_host ||= host - return if api_key - pretty_host = pretty_host(sign_in_host) - + if api_key + say "You are already signed in on #{pretty_host}." + return + end say "Enter your #{pretty_host} credentials." say "Don't have an account yet? " \ "Create one at #{sign_in_host}/sign_up" |
