module PuppetRakeTasks::DepChecker::Resolver::Incidents
Collect all incidents
Public Instance Methods
incidents()
click to toggle source
Returns all (cached) detected incidents in modules. @return [Hash] all incidents.
# File lib/puppet_rake_tasks/depchecker/incidents.rb, line 8 def incidents @incidents ||= initialize_incidents end
initialize_incidents()
click to toggle source
Detect all incidents for the current env. @return [Hash] incidents.
# File lib/puppet_rake_tasks/depchecker/incidents.rb, line 14 def initialize_incidents tmp_incidents = {} modules.by_name.each do |name, mod| mod.unmet_dependencies.each do |incident| tmp_incidents[name] ||= [] tmp_incidents[name] << incident end end tmp_incidents end