From 342db79c0dae8d6ec422cde95f4e890a173f3af3 Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman <the@jeffreyfreeman.me> Date: Tue, 23 Feb 2021 18:56:33 -0500 Subject: [PATCH] Removed unused concurency on actions. --- lib/aethyr/core/actions/action.rb | 4 ---- lib/aethyr/core/actions/action_groups.rb | 23 ----------------------- 2 files changed, 27 deletions(-) delete mode 100644 lib/aethyr/core/actions/action_groups.rb diff --git a/lib/aethyr/core/actions/action.rb b/lib/aethyr/core/actions/action.rb index 7dd7874..474219f 100644 --- a/lib/aethyr/core/actions/action.rb +++ b/lib/aethyr/core/actions/action.rb @@ -1,10 +1,6 @@ module Aethyr module Extend module Action - def concurrency - :single - end - def action; end end diff --git a/lib/aethyr/core/actions/action_groups.rb b/lib/aethyr/core/actions/action_groups.rb deleted file mode 100644 index a957597..0000000 --- a/lib/aethyr/core/actions/action_groups.rb +++ /dev/null @@ -1,23 +0,0 @@ -module Aethyr - module Extend - class ActionGroup - attr_reader :concurrency - - def initialize(concurrency, *actions) - @actions = *actions - @concurrency = concurrency - - if @concurrency != :parallel && @concurrency != :sequenial - raise 'Invalid concurrency type' - end - if @actions.nil? || @actions.length < 2 - raise 'actions needs to have at least two values' - end - end - - def each - @actions.each { |e| yield e } - end - end - end -end -- GitLab