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:



535
536
537
# File 'lib/buildr/core/application.rb', line 535

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