Module: MTBuild::Cleaner

Extended by:
Rake::DSL
Defined in:
lib/mtbuild/cleaner.rb

Class Attribute Summary collapse

Class Method Summary collapse

Methods included from Rake::DSL

application_task, framework_task, static_library_task, test_application_task

Class Attribute Details

.global_clean_listObject (readonly)

The list of files/folder to clean



10
11
12
# File 'lib/mtbuild/cleaner.rb', line 10

def global_clean_list
  @global_clean_list
end

Class Method Details

.generate_clean_task_for_project(project_name, project_clean_list) ⇒ Object



19
20
21
22
23
24
# File 'lib/mtbuild/cleaner.rb', line 19

def generate_clean_task_for_project(project_name, project_clean_list)
  desc "Remove intermediate and output files/folders for #{project_name}."
  task :clean do
    cleanup_files(project_clean_list)
  end
end

.generate_global_clean_taskObject



12
13
14
15
16
17
# File 'lib/mtbuild/cleaner.rb', line 12

def generate_global_clean_task
  desc "Remove intermediate and output files/folders for all projects."
  task :clean do
    cleanup_files(@global_clean_list)
  end
end