Class: Buildr::BuildfileTask
- Inherits:
-
Rake::FileTask
- Object
- Rake::FileTask
- Buildr::BuildfileTask
- Defined in:
- lib/buildr/core/application.rb
Overview
This task stands for the buildfile and all its associated helper files (e.g., buildr.rb, build.yaml). By using this task as a prerequisite for other tasks, you can ensure these tasks will be needed whenever the buildfile changes.
Instance Method Summary collapse
-
#timestamp ⇒ Object
:nodoc:.
Methods inherited from Rake::FileTask
Instance Method Details
#timestamp ⇒ Object
:nodoc:
567 568 569 |
# File 'lib/buildr/core/application.rb', line 567 def ([name] + prerequisites).map { |f| File.stat(f).mtime }.max rescue Time.now end |