Class: Rookout::Augs::Actions::ActionRunProcessor
- Defined in:
- lib/rookout/augs/actions/action_run_processor.rb
Instance Method Summary collapse
- #execute(aug_id, report_id, namespace, output) ⇒ Object
-
#initialize(arguments, processor_factory) ⇒ ActionRunProcessor
constructor
A new instance of ActionRunProcessor.
Constructor Details
#initialize(arguments, processor_factory) ⇒ ActionRunProcessor
Returns a new instance of ActionRunProcessor.
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/rookout/augs/actions/action_run_processor.rb', line 7 def initialize arguments, processor_factory super() @processor = processor_factory.create_processor arguments["operations"] post_operations = arguments["post_operations"] if post_operations @post_processor = processor_factory.create_processor post_operations else @post_processor = nil end end |
Instance Method Details
#execute(aug_id, report_id, namespace, output) ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/rookout/augs/actions/action_run_processor.rb', line 19 def execute aug_id, report_id, namespace, output @processor.process namespace output. aug_id, report_id, namespace.read_attribute("store") return unless @post_processor output. @post_processor.process namespace end |