Method: Gem::Commands::CertCommand#build
- Defined in:
- lib/rubygems/commands/cert_command.rb
#build(email) ⇒ Object
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 |
# File 'lib/rubygems/commands/cert_command.rb', line 138 def build(email) unless valid_email?(email) raise Gem::CommandLineError, "Invalid email address #{email}" end key, key_path = build_key cert_path = build_cert email, key say "Certificate: #{cert_path}" if key_path say "Private Key: #{key_path}" say "Don't forget to move the key file to somewhere private!" end end |