Module: FWToolkit::Rake
- Defined in:
- lib/fwtoolkit/rake/tasks.rb,
lib/fwtoolkit/rake/tasks/ci.rb,
lib/fwtoolkit/rake/tasks/test.rb,
lib/fwtoolkit/rake/tasks/xcode.rb,
lib/fwtoolkit/rake/tasks/config.rb,
lib/fwtoolkit/rake/tasks/project.rb
Defined Under Namespace
Modules: Config Classes: CITask, ProjectTask, TestTask, XcodeTask
Class Method Summary collapse
Class Method Details
.new_all(&block) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/fwtoolkit/rake/tasks.rb', line 9 def self.new_all(&block) # Create a new rake task for each of the included/defined class that have 'Task' in their name and # belongs to FWToolkit::Rake module task_classes = self.constants.select do |c| constant = self.const_get(c) (Class === constant) && constant.name.include?('Task') end task_classes.each { |k| self.const_get(k).new(&block) } end |