Sha256: 0f79cc1579567b691c2aef0d76947fc4427a0c0244fdaf547e00c822d1f4bc3f

Contents?: true

Size: 554 Bytes

Versions: 12

Compression:

Stored size: 554 Bytes

Contents

# frozen_string_literal: true

module Opera
  module Operation
    module Instructions
      module Executors
        class Validate < Executor
          def break_condition
            operation.finished?
          end

          private

          def evaluate_instruction(instruction)
            instruction[:kind] = :step
            dry_result = super

            add_instruction_output(instruction, dry_result.to_h)
            result.add_errors(dry_result.errors) unless dry_result.success?
          end
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
opera-0.2.10 lib/opera/operation/instructions/executors/validate.rb
opera-0.2.9 lib/opera/operation/instructions/executors/validate.rb
opera-0.2.8 lib/opera/operation/instructions/executors/validate.rb
opera-0.2.7 lib/opera/operation/instructions/executors/validate.rb
opera-0.2.6 lib/opera/operation/instructions/executors/validate.rb
opera-0.2.5 lib/opera/operation/instructions/executors/validate.rb
opera-0.2.4 lib/opera/operation/instructions/executors/validate.rb
opera-0.2.3 lib/opera/operation/instructions/executors/validate.rb
opera-0.2.2 lib/opera/operation/instructions/executors/validate.rb
opera-0.2.1 lib/opera/operation/instructions/executors/validate.rb
opera-0.2.0 lib/opera/operation/instructions/executors/validate.rb
opera-0.1.2 lib/opera/operation/instructions/executors/validate.rb