Class: RakeWrapper

Inherits:
Object show all
Defined in:
lib/ceedling/rake_wrapper.rb

Instance Method Summary collapse

Constructor Details

#initializeRakeWrapper

Returns a new instance of RakeWrapper.



20
21
22
# File 'lib/ceedling/rake_wrapper.rb', line 20

def initialize
  @makefile_loader = Rake::MakefileLoader.new # use our custom replacement noted above
end

Instance Method Details

#[](task) ⇒ Object



24
25
26
# File 'lib/ceedling/rake_wrapper.rb', line 24

def [](task)
  return Rake::Task[task]
end

#create_file_task(file_task, dependencies) ⇒ Object



32
33
34
# File 'lib/ceedling/rake_wrapper.rb', line 32

def create_file_task(file_task, dependencies)
  file(file_task => dependencies)
end

#load_dependencies(dependencies_path) ⇒ Object



36
37
38
# File 'lib/ceedling/rake_wrapper.rb', line 36

def load_dependencies(dependencies_path)
  @makefile_loader.load(dependencies_path)
end

#task_listObject



28
29
30
# File 'lib/ceedling/rake_wrapper.rb', line 28

def task_list
  return Rake::Task.tasks
end