diff --git a/lib/aethyr/core/actions/action.rb b/lib/aethyr/core/actions/action.rb index 7dd7874662d945a1f4e298a3888def293c9f7cd4..474219f2c35db82429d18742956c2e3e4ce3b746 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 a957597605e8f94b6db24bd114b54711099970bc..0000000000000000000000000000000000000000 --- 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