Skip to content

Commit

Permalink
Fix syntax issues with Ruby 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ahukkanen committed Sep 19, 2022
1 parent aef3e86 commit e5ad8dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/decidim/gem_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,24 +133,24 @@ def uninstall_all(out: $stdout)
end

def run_all(command, out: $stdout, include_root: true)
all_dirs(include_root:) do |dir|
status = run_at(dir, command, out:)
all_dirs(include_root: include_root) do |dir|
status = run_at(dir, command, out: out)

break if !status && fail_fast?
end
end

def run_packages(command, out: $stdout)
package_dirs do |dir|
status = run_at(dir, command, out:)
status = run_at(dir, command, out: out)

break if !status && fail_fast?
end
end

def run_at(dir, command, out: $stdout)
attempts = 0
until (status = new(dir).run(command, out:))
until (status = new(dir).run(command, out: out))
attempts += 1

break if attempts > Decidim::GemManager.retry_times
Expand Down

0 comments on commit e5ad8dd

Please sign in to comment.