34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# File 'lib/doc/documentor.rb', line 34
def config(update = false)
last_updated_path = base_dir / '.last_updated'
update ||= last_updated_path.exist? ? (Time.now > last_updated_path.mtime + min_update_interval) : true
configurators.with_progress('configuring and updating').each do |configurator|
configurator.configure(update)
end
last_updated_path.touch if update
RootMerger.new(self, {
:title => title,
:tasks => configurators.with_progress('generating tasks').map(&:tasks).flatten
})
end
|