Class: Kettle::Jem::PluginContext

Inherits:
Object
  • Object
show all
Defined in:
lib/kettle/jem.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_filesObject (readonly)

Returns the value of attribute changed_files.



1647
1648
1649
# File 'lib/kettle/jem.rb', line 1647

def changed_files
  @changed_files
end

#diagnosticsObject (readonly)

Returns the value of attribute diagnostics.



1647
1648
1649
# File 'lib/kettle/jem.rb', line 1647

def diagnostics
  @diagnostics
end

#factsObject (readonly)

Returns the value of attribute facts.



1647
1648
1649
# File 'lib/kettle/jem.rb', line 1647

def facts
  @facts
end

#helpersObject (readonly)

Returns the value of attribute helpers.



1647
1648
1649
# File 'lib/kettle/jem.rb', line 1647

def helpers
  @helpers
end

#modeObject (readonly)

Returns the value of attribute mode.



1647
1648
1649
# File 'lib/kettle/jem.rb', line 1647

def mode
  @mode
end

#outObject (readonly)

Returns the value of attribute out.



1647
1648
1649
# File 'lib/kettle/jem.rb', line 1647

def out
  @out
end

#phase_reportsObject (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_rootObject (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_packObject (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_reportsObject (readonly)

Returns the value of attribute recipe_reports.



1647
1648
1649
# File 'lib/kettle/jem.rb', line 1647

def recipe_reports
  @recipe_reports
end