Sha256: 4b9b8667288eb0184e2593f68cb84210be1ea0d5a1798c1ffd54810a14136080

Contents?: true

Size: 635 Bytes

Versions: 42

Compression:

Stored size: 635 Bytes

Contents

require 'fwtoolkit/rake/tasks/ci'
require 'fwtoolkit/rake/tasks/ota'
require 'fwtoolkit/rake/tasks/project'
require 'fwtoolkit/rake/tasks/test'
require 'fwtoolkit/rake/tasks/xcode'

module FWToolkit
  module Rake
    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
    
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
fwtoolkit-2.6.4 lib/fwtoolkit/rake/tasks.rb
fwtoolkit-2.6.3 lib/fwtoolkit/rake/tasks.rb
fwtoolkit-2.6.2 lib/fwtoolkit/rake/tasks.rb
fwtoolkit-2.6.1 lib/fwtoolkit/rake/tasks.rb
fwtoolkit-2.6.0 lib/fwtoolkit/rake/tasks.rb
fwtoolkit-2.5.0 lib/fwtoolkit/rake/tasks.rb
fwtoolkit-2.4.0 lib/fwtoolkit/rake/tasks.rb
fwtoolkit-2.3.6 lib/fwtoolkit/rake/tasks.rb
fwtoolkit-2.3.5 lib/fwtoolkit/rake/tasks.rb
fwtoolkit-2.3.4 lib/fwtoolkit/rake/tasks.rb
fwtoolkit-2.3.3 lib/fwtoolkit/rake/tasks.rb
fwtoolkit-2.3.2 lib/fwtoolkit/rake/tasks.rb
fwtoolkit-2.3.1 lib/fwtoolkit/rake/tasks.rb
fwtoolkit-2.3.0 lib/fwtoolkit/rake/tasks.rb
fwtoolkit-2.2.4 lib/fwtoolkit/rake/tasks.rb
fwtoolkit-2.2.3 lib/fwtoolkit/rake/tasks.rb
fwtoolkit-2.2.2 lib/fwtoolkit/rake/tasks.rb
fwtoolkit-2.2.1 lib/fwtoolkit/rake/tasks.rb
fwtoolkit-2.2.0 lib/fwtoolkit/rake/tasks.rb
fwtoolkit-2.1.10 lib/fwtoolkit/rake/tasks.rb