Class: RakeWrapper
Instance Method Summary collapse
- #[](task) ⇒ Object
- #create_file_task(file_task, dependencies) ⇒ Object
-
#initialize ⇒ RakeWrapper
constructor
A new instance of RakeWrapper.
- #load_dependencies(dependencies_path) ⇒ Object
- #task_list ⇒ Object
Constructor Details
#initialize ⇒ RakeWrapper
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_list ⇒ Object
28 29 30 |
# File 'lib/ceedling/rake_wrapper.rb', line 28 def task_list return Rake::Task.tasks end |