Class: Siba::Backup

Inherits:
Object
  • Object
show all
Includes:
FilePlug, LoggerPlug
Defined in:
lib/siba/backup.rb

Instance Method Summary collapse

Methods included from FilePlug

#siba_file, siba_file, siba_file=

Methods included from LoggerPlug

close, create, logger, #logger, opened?

Instance Method Details

#backup(path_to_options_yml, path_to_log_file) ⇒ Object



8
9
10
11
12
# File 'lib/siba/backup.rb', line 8

def backup(path_to_options_yml, path_to_log_file)
  run_backup path_to_options_yml, path_to_log_file
ensure
  Siba.cleanup
end