Method: RDI::Model::DependencyUserChoice.getAffectingContextModifiers
- Defined in:
- lib/rdi/Model/DependencyUserChoice.rb
.getAffectingContextModifiers(ioInstaller, iDepDesc) ⇒ Object
Compute the list of AffectingContextModifiers
Parameters:
-
ioInstaller (Installer): The installer
-
iDepDesc (DependencyDescription): The dependency description
Return:
-
list<String>: The list of ContextModifiers names
69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/rdi/Model/DependencyUserChoice.rb', line 69 def self.getAffectingContextModifiers(ioInstaller, iDepDesc) rAffectingContextModifiers = [] # Gather the list of affecting ContextModifiers by parsing every Tester. iDepDesc.Testers.each do |iTesterInfo| iTesterName, iTesterContent = iTesterInfo ioInstaller.accessPlugin('Testers', iTesterName) do |iPlugin| rAffectingContextModifiers = (rAffectingContextModifiers + iPlugin.AffectingContextModifiers).uniq end end return rAffectingContextModifiers end |