Module: Pwrake::FileTaskAlgorithm
- Defined in:
- lib/pwrake/task/file_task_algorithm.rb
Instance Method Summary collapse
- #needed? ⇒ Boolean
-
#timestamp ⇒ Object
Cache time stamp to reduce load on file system.
Instance Method Details
#needed? ⇒ Boolean
5 6 7 |
# File 'lib/pwrake/task/file_task_algorithm.rb', line 5 def needed? !_exist?(name) || out_of_date?() || @application..build_all end |
#timestamp ⇒ Object
Cache time stamp to reduce load on file system.
10 11 12 13 14 15 16 17 |
# File 'lib/pwrake/task/file_task_algorithm.rb', line 10 def @file_mtime || if _exist?(name) @file_mtime = _mtime(name.to_s) else Rake::LATE end end |