Sha256: 8c0dfecf11f7d22665cd777d657222bd45603fbcdd84cd2b677db6db50342529

Contents?: true

Size: 672 Bytes

Versions: 7

Compression:

Stored size: 672 Bytes

Contents

require 'set'

module Distil
  
  class Task < Configurable
    
    def initialize(options, target)
      @target= target
      super(options, target)
    end

    def project
      target.project
    end

    def target
      @target
    end
    
    @@tasks= []
    def self.inherited(subclass)
      @@tasks << subclass
    end
  
    def self.tasks
      @@tasks
    end
    
    def handles_file?(file)
      false
    end

    def find_files
      []
    end
    
    def include_file(file)
    end

    def process_files(files)
    end
  
  end
  
end

# load all the other task types
Dir.glob("#{Distil::LIB_DIR}/distil/task/*-task.rb") { |file|
  require file
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
distil-0.13.6 lib/distil/task.rb
distil-0.13.5 lib/distil/task.rb
distil-0.13.4 lib/distil/task.rb
distil-0.13.3 lib/distil/task.rb
distil-0.13.2 lib/distil/task.rb
distil-0.13.1 lib/distil/task.rb
distil-0.13.0 lib/distil/task.rb