84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
# File 'lib/nanoc/core/basic_outdatedness_checker.rb', line 84
def outdatedness_status_for(obj)
case obj
when Nanoc::Core::ItemRep
apply_rules(RULES_FOR_ITEM_REP, obj)
when Nanoc::Core::Item
apply_rules_multi(RULES_FOR_ITEM_REP, @reps[obj])
when Nanoc::Core::Layout
apply_rules(RULES_FOR_LAYOUT, obj)
when Nanoc::Core::Configuration
apply_rules(RULES_FOR_CONFIG, obj)
when Nanoc::Core::ItemCollection, Nanoc::Core::LayoutCollection
apply_rules([], obj)
else
raise Nanoc::Core::Errors::InternalInconsistency, "do not know how to check outdatedness of #{obj.inspect}"
end
end
|