class Rookout::Augs::Actions::ActionRunProcessor

Public Class Methods

new(arguments, processor_factory) click to toggle source
# File lib/rookout/augs/actions/action_run_processor.rb, line 7
def initialize arguments, processor_factory
  @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

Public Instance Methods

execute(aug_id, report_id, namespace, output) click to toggle source
# File lib/rookout/augs/actions/action_run_processor.rb, line 18
def execute aug_id, report_id, namespace, output
  @processor.process namespace
  output.send_user_message aug_id, report_id, namespace.read_attribute("store")
  return unless @post_processor

  output.flush_message
  @post_processor.process namespace
end