lib/airake/tasks/air.rake in airake-0.2.3 vs lib/airake/tasks/air.rake in airake-0.2.4
- old
+ new
@@ -30,31 +30,33 @@
end
if File.exist?(pfx_file)
raise <<-EOS
Certificate file exists at '#{pfx_file}'. If you want to generate a new certificate, please delete it first.
- You can override the setting in the Rakefile, e.g.: rake air:certificate CERTIFICATE=path.pfx
+ You can override the setting in the Rakefile or on the command line: rake air:certificate CERTIFICATE=path.pfx
EOS
end
puts "Will generate a certificate file at: #{pfx_file}"
project = Airake::Project.new_from_rake(ENV)
optionals = {}
- print "Specify common name (e.g. SelfSign, ADigitalID): "
+ print "Specify common name (e.g. SelfSign, ADigitalID) [SelfSign]: "
cn = STDIN.gets.chomp!
+ cn = "SelfSign" if cn.blank?
- print "Key type (e.g. 1024-RSA, 2048-RSA): "
+ print "Key type (e.g. 1024-RSA, 2048-RSA) [1024-RSA]:"
key_type = STDIN.gets.chomp!
+ key_type = "1024-RSA" if key_type.blank?
- print "Org unit (optional; e.g QE): "
- optionals[:ou] = STDIN.gets.chomp!
-
- print "Org name (optional; e.g Example - CO): "
+ print "Organization name (optional; e.g ducktyper.com): "
input = STDIN.gets.chomp!
- optionals[:o] = "\"#{input}\"" unless input.blank?
+ optionals[:o] = "\"#{input}\"" unless input.blank?
+
+ print "Organization unit (optional; e.g QE): "
+ optionals[:ou] = STDIN.gets.chomp!
print "Country (optional; e.g. US): "
optionals[:c] = STDIN.gets.chomp!
print "Password: "
\ No newline at end of file