Class: Kettle::Jem::PluginContext
- Inherits:
-
Object
- Object
- Kettle::Jem::PluginContext
- Defined in:
- lib/kettle/jem.rb
Instance Attribute Summary collapse
-
#changed_files ⇒ Object
readonly
Returns the value of attribute changed_files.
-
#diagnostics ⇒ Object
readonly
Returns the value of attribute diagnostics.
-
#facts ⇒ Object
readonly
Returns the value of attribute facts.
-
#helpers ⇒ Object
readonly
Returns the value of attribute helpers.
-
#mode ⇒ Object
readonly
Returns the value of attribute mode.
-
#out ⇒ Object
readonly
Returns the value of attribute out.
-
#phase_reports ⇒ Object
readonly
Returns the value of attribute phase_reports.
-
#project_root ⇒ Object
readonly
Returns the value of attribute project_root.
-
#recipe_pack ⇒ Object
readonly
Returns the value of attribute recipe_pack.
-
#recipe_reports ⇒ Object
readonly
Returns the value of attribute recipe_reports.
Instance Method Summary collapse
-
#initialize(project_root:, mode:, facts:, recipe_pack:, recipe_reports:, changed_files:, diagnostics:, phase_reports: []) ⇒ PluginContext
constructor
A new instance of PluginContext.
Constructor Details
#initialize(project_root:, mode:, facts:, recipe_pack:, recipe_reports:, changed_files:, diagnostics:, phase_reports: []) ⇒ PluginContext
Returns a new instance of PluginContext.
1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 |
# File 'lib/kettle/jem.rb', line 1658 def initialize(project_root:, mode:, facts:, recipe_pack:, recipe_reports:, changed_files:, diagnostics:, phase_reports: []) @project_root = project_root @mode = mode @facts = facts @recipe_pack = recipe_pack @recipe_reports = recipe_reports @phase_reports = phase_reports @changed_files = changed_files @diagnostics = diagnostics @helpers = PluginHelpers.new(project_root: project_root, changed_files: changed_files, diagnostics: diagnostics) @out = PluginOutput.new(diagnostics: diagnostics) end |
Instance Attribute Details
#changed_files ⇒ Object (readonly)
Returns the value of attribute changed_files.
1647 1648 1649 |
# File 'lib/kettle/jem.rb', line 1647 def changed_files @changed_files end |
#diagnostics ⇒ Object (readonly)
Returns the value of attribute diagnostics.
1647 1648 1649 |
# File 'lib/kettle/jem.rb', line 1647 def diagnostics @diagnostics end |
#facts ⇒ Object (readonly)
Returns the value of attribute facts.
1647 1648 1649 |
# File 'lib/kettle/jem.rb', line 1647 def facts @facts end |
#helpers ⇒ Object (readonly)
Returns the value of attribute helpers.
1647 1648 1649 |
# File 'lib/kettle/jem.rb', line 1647 def helpers @helpers end |
#mode ⇒ Object (readonly)
Returns the value of attribute mode.
1647 1648 1649 |
# File 'lib/kettle/jem.rb', line 1647 def mode @mode end |
#out ⇒ Object (readonly)
Returns the value of attribute out.
1647 1648 1649 |
# File 'lib/kettle/jem.rb', line 1647 def out @out end |
#phase_reports ⇒ Object (readonly)
Returns the value of attribute phase_reports.
1647 1648 1649 |
# File 'lib/kettle/jem.rb', line 1647 def phase_reports @phase_reports end |
#project_root ⇒ Object (readonly)
Returns the value of attribute project_root.
1647 1648 1649 |
# File 'lib/kettle/jem.rb', line 1647 def project_root @project_root end |
#recipe_pack ⇒ Object (readonly)
Returns the value of attribute recipe_pack.
1647 1648 1649 |
# File 'lib/kettle/jem.rb', line 1647 def recipe_pack @recipe_pack end |
#recipe_reports ⇒ Object (readonly)
Returns the value of attribute recipe_reports.
1647 1648 1649 |
# File 'lib/kettle/jem.rb', line 1647 def recipe_reports @recipe_reports end |