class Rake::FileTask
Public Instance Methods
needed?()
click to toggle source
# File lib/make/rake/work/well.rb, line 12 def needed? ! File.exist?(name) || timestamp > real_timestamp end
Also aliased as: old_needed?
real_timestamp()
click to toggle source
# File lib/make/rake/work/well.rb, line 16 def real_timestamp File.exist?(name) && File.mtime(name.to_s) || Rake::EARLY end
timestamp()
click to toggle source
# File lib/make/rake/work/well.rb, line 20 def timestamp @timestamp ||= if File.exist?(name) a = File.mtime(name.to_s) b = prerequisite_tasks.collect(&:timestamp).max [a, b].compact.max else Rake::EARLY end end
Also aliased as: old_timestamp