Method: Ulock.decrypt_multiple

Defined in:
lib/ulock.rb

.decrypt_multiple(filenames) ⇒ Object



40
41
42
43
44
45
46
47
# File 'lib/ulock.rb', line 40

def decrypt_multiple(filenames)
  bar = TTY::ProgressBar.new("Decrypting :filename [:bar]", total: filenames.length * 5)
  filenames.each do |file|
    decrypt_file file
    bar.advance 5, filename: file
  end
  bar.finish
end