Method: KeyTool#output_file
- Defined in:
- lib/universa/keytool/keytool.rb
#output_file(extension = nil, overwrite_existing_name = nil) ⇒ Object
73 74 75 76 77 78 79 80 |
# File 'lib/universa/keytool/keytool.rb', line 73 def output_file(extension = nil, overwrite_existing_name = nil) name = @output_file if !name (overwrite_existing_name && @overwrite) or error "specify output file with -o / --output" name = overwrite_existing_name end extension && !name.end_with?(extension) ? "#{name}#{extension}" : name end |