Sha256: ba94a09ea9393931b70c03ca2147ce11ca40c3c04c3dd43587179f9b5b403cf7

Contents?: true

Size: 404 Bytes

Versions: 2

Compression:

Stored size: 404 Bytes

Contents

require 'rake/tasklib'

def docu(name=:docu, *args, &block)
  Albacore::DocuTask.new(name, *args, &block)
end

module Albacore
  class DocuTask < Albacore::AlbacoreTask
    def execute(name, task_args)
      @docu = Docu.new
      @docu.load_config_by_task_name(name)
      @block.call(@docu, *task_args) unless @block.nil?
      @docu.execute
      fail if @docu.failed
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
albacore-0.1.1 lib/rake/docutask.rb
albacore-0.1.0 lib/rake/docutask.rb