Project

General

Profile

Actions

Refactor #18237

open

Turn Foreman::Renderer into a proper service object

Added by Tomer Brisker over 7 years ago. Updated over 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Templates
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Currently, Foreman::Renderer is a mixin included into various different object types, such as models, controllers and helpers.
The internal implementation of many functions relies on and sets various instance variables.
I suggest that it will be converted into a service object that receives various parameters (e.g. host) and handles rendering templates, while extracting logic that isn't directly related to this process into other objects.

No data to display

Actions

Also available in: Atom PDF