lib/backy/pg_restore.rb in backy_rb-0.1.8 vs lib/backy/pg_restore.rb in backy_rb-0.2.0

- old
+ new

@@ -8,19 +8,19 @@ def initialize(file_name:) @file_name = file_name end def call - pigz_installed = system('which pigz > /dev/null 2>&1') + pigz_installed = system("which pigz > /dev/null 2>&1") multicore = Etc.nprocessors > 1 use_multicore = ENV["BACKY_USE_PARALLEL"] == "true" if pigz_installed && multicore && use_multicore - Logger.log('Using parallel restore with pigz') + Logger.log("Using parallel restore with pigz") parallel_restore else Logger.log("Pigz not installed or system is not multicore") - Logger.log('Using plain text restore') + Logger.log("Using plain text restore") plain_text_restore end end private