Class: Buildr::BuildfileTask

Inherits:
Rake::FileTask
  • Object
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

Instance Method Details

#timestampObject

:nodoc:



565
566
567
# File 'lib/buildr/core/application.rb', line 565

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