Class: Rake::Task

Inherits:
Object
  • Object
show all
Defined in:
lib/rake-plus/rake_ext.rb

Instance Method Summary collapse

Instance Method Details

#file_missing?(path) ⇒ Boolean

Returns:

  • (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?

Returns:

  • (Boolean)


4
5
6
# File 'lib/rake-plus/rake_ext.rb', line 4

def out_of_date?(stamp)
  @prerequisites.any? { |n| application[n, @scope].timestamp > stamp}
end