Sha256: 0defd3d2977d24f943d65a4a432e3da7935c6bac512346a3a05ecf99215227d9

Contents?: true

Size: 433 Bytes

Versions: 2

Compression:

Stored size: 433 Bytes

Contents

require 'rake'
require 'rake/clean'
require 'rake/tasklib'


module Rake
module Leaves

  class DoxygenTask < TaskLib
    attr_accessor :config
    
    def initialize()
      @config = 'Doxyfile'
      
      yield self if block_given?
      define
    end
    
    def define
      desc "Generate documentation using Doxygen."
      task :doc do
        sh "doxygen #{@config}"
      end
      
      self
    end
  end
  
end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
leaves-0.1.1 lib/leaves/doc/doxygen.rb
leaves-0.1.0 lib/leaves/doc/doxygen.rb