vendor/eac_cli/lib/eac_cli/runner/context.rb in ehbrs-tools-0.20.0 vs vendor/eac_cli/lib/eac_cli/runner/context.rb in ehbrs-tools-0.21.0
- old
+ new
@@ -25,11 +25,12 @@
protected
def parent_call(method_name, *args)
return parent.context(method_name, *args) if parent.respond_to?(:context)
+ return parent.runner_context.call(method_name, *args) if parent.respond_to?(:runner_context)
- parent.runner_context.call(method_name, *args)
+ raise "Parent #{parent} do not respond to .context or .runner_context (Runner: #{runner})"
end
end
end
end