lib/backup_repos/shell.rb in backup_repos-0.3.0 vs lib/backup_repos/shell.rb in backup_repos-0.4.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + module BackupRepos class Shell def initialize(opts = {}) @debug = opts[:debug] || false end @@ -14,10 +16,10 @@ def debug? @debug || BackupRepos.config.debug end def execute_command(command) - output = IO.popen(command, 'r', err: [:child, :out]) do |io| + output = IO.popen(command, 'r', err: %i[child out]) do |io| output = io.read log_output(output) output end