Class: Rake::Task
- Inherits:
-
Object
- Object
- Rake::Task
- Defined in:
- lib/rake-plus/rake_ext.rb
Direct Known Subclasses
BuildDependency, GitDependency, RemotePackage, SvnDependency, Recipe
Instance Method Summary collapse
- #file_missing?(path) ⇒ Boolean
-
#out_of_date?(stamp) ⇒ Boolean
Are there any prerequisites with a later time than the given time stamp?.
Instance Method Details
#file_missing?(path) ⇒ Boolean
8 9 10 |
# File 'lib/rake-plus/rake_ext.rb', line 8 def file_missing?(path) File.exist?(path) ? nil : :file_missing end |
#out_of_date?(stamp) ⇒ Boolean
Are there any prerequisites with a later time than the given time stamp?
4 5 6 |
# File 'lib/rake-plus/rake_ext.rb', line 4 def out_of_date?(stamp) @prerequisites.any? { |n| application[n, @scope]. > stamp} end |