Module: Paperback::CLI

Defined in:
lib/paperback/cli.rb

Class Method Summary collapse

Class Method Details

.create_backup(input:, output:, encrypt: true, qr_base64: true, qr_level: :l, comment: nil, passphrase_file: nil, extra_draw_opts: {}) ⇒ Object


3
4
5
6
7
8
9
10
11
# File 'lib/paperback/cli.rb', line 3

def self.create_backup(input:, output:, encrypt: true, qr_base64: true,
                       qr_level: :l, comment: nil, passphrase_file: nil,
                       extra_draw_opts: {})
  prep = Paperback::Preparer.new(filename: input, encrypt: encrypt,
                                 qr_base64: qr_base64, qr_level: qr_level,
                                 passphrase_file: passphrase_file,
                                 comment: comment)
  prep.render(output_filename: output, extra_draw_opts: extra_draw_opts)
end