class Cookbooks::CheckForCorrectDependencies
Constants
- NAMESPACE
#¶ ↑
NAMESPACE¶ ↑
#¶ ↑
Public Class Methods
[](i = '')
click to toggle source
Public Instance Methods
check_for_every_entry()
click to toggle source
#¶ ↑
#check_for_every_entry¶ ↑
#¶ ↑
# File lib/cookbooks/validation/check_for_correct_dependencies.rb, line 98 def check_for_every_entry opnn; e 'Now checking every program. This may take a while.' Cookbooks.available_programs?.each {|program| # ===================================================================== # # The next line is very verbose, so it may be best to enable it only # for debugging purposes really. # ===================================================================== # # opnn; e 'Working on the program `'+sfancy(program)+'` next.' dataset = ::Cookbooks::Cookbook.new(program) { :bypass_menu } deps = dataset.deps? result = deps.all? {|entry| Cookbooks.really_does_include?(entry) } if result # Ok, in this case all entries were found. else deps.each {|entry| if entry.include? ' ' entry = entry.split(' ').first.strip end unless Cookbooks.really_does_include? entry opnn; e "#{format_program(program)}No "\ "entry for `#{simp(entry)}` was found." end } end } end
format_program(i)
click to toggle source
input?()
click to toggle source
opnn()
click to toggle source
reset()
click to toggle source
run()
click to toggle source