lib/s3_website/keyboard.rb in s3_website-1.0.3 vs lib/s3_website/keyboard.rb in s3_website-1.1.0

- old
+ new

@@ -1,8 +1,8 @@ module S3Website class Keyboard - def self.if_user_confirms_delete(to_delete, standard_input=STDIN) + def self.if_user_confirms_delete(to_delete, config, standard_input=STDIN) delete_all = false keep_all = false confirmed_deletes = to_delete.map do |f| delete = false keep = false @@ -17,10 +17,10 @@ end if (delete_all || delete) && !(keep_all || keep) f end end.select { |f| f } - Parallelism.each_in_parallel_or_sequentially(confirmed_deletes) { |f| + Parallelism.each_in_parallel_or_sequentially(confirmed_deletes, config) { |f| yield f } end end end