Class: Rake::FileTask

Inherits:
Object
  • Object
show all
Defined in:
lib/scout/resource/produce/rake.rb

Class Method Summary collapse

Class Method Details

.clear_filesObject



20
21
22
# File 'lib/scout/resource/produce/rake.rb', line 20

def self.clear_files
  @@files = []
end

.define_task(file, *args, &block) ⇒ Object



10
11
12
13
14
# File 'lib/scout/resource/produce/rake.rb', line 10

def self.define_task(file, *args, &block)
  @@files ||= []
  @@files << file
  old_define_task(file, *args, &block)
end

.filesObject



16
17
18
# File 'lib/scout/resource/produce/rake.rb', line 16

def self.files
  @@files
end

.old_define_taskObject



7
# File 'lib/scout/resource/produce/rake.rb', line 7

alias_method :old_define_task, :define_task