Class: Buildr::BuildfileTask

Inherits:
Rake::FileTask show all
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

Methods inherited from Rake::FileTask

#contain?, #empty?, #exist?

Instance Method Details

#timestampObject

:nodoc:



567
568
569
# File 'lib/buildr/core/application.rb', line 567

def timestamp
  ([name] + prerequisites).map { |f| File.stat(f).mtime }.max rescue Time.now
end