mirror of
https://github.com/ruby/ruby.git
synced 2025-09-21 03:24:00 +02:00
Merge RubyGems-3.3.19 and Bundler-2.3.19
This commit is contained in:
parent
0918783347
commit
44c926f3a9
362 changed files with 7843 additions and 7605 deletions
|
@ -1,14 +1,14 @@
|
|||
# frozen_string_literal: true
|
||||
require_relative '../command'
|
||||
require_relative "../command"
|
||||
|
||||
class Gem::Commands::SignoutCommand < Gem::Command
|
||||
def initialize
|
||||
super 'signout', 'Sign out from all the current sessions.'
|
||||
super "signout", "Sign out from all the current sessions."
|
||||
end
|
||||
|
||||
def description # :nodoc:
|
||||
'The `signout` command is used to sign out from all current sessions,'\
|
||||
' allowing you to sign in using a different set of credentials.'
|
||||
"The `signout` command is used to sign out from all current sessions,"\
|
||||
" allowing you to sign in using a different set of credentials."
|
||||
end
|
||||
|
||||
def usage # :nodoc:
|
||||
|
@ -19,13 +19,13 @@ class Gem::Commands::SignoutCommand < Gem::Command
|
|||
credentials_path = Gem.configuration.credentials_path
|
||||
|
||||
if !File.exist?(credentials_path)
|
||||
alert_error 'You are not currently signed in.'
|
||||
alert_error "You are not currently signed in."
|
||||
elsif !File.writable?(credentials_path)
|
||||
alert_error "File '#{Gem.configuration.credentials_path}' is read-only."\
|
||||
' Please make sure it is writable.'
|
||||
" Please make sure it is writable."
|
||||
else
|
||||
Gem.configuration.unset_api_key!
|
||||
say 'You have successfully signed out from all sessions.'
|
||||
say "You have successfully signed out from all sessions."
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue