Sha256: cda87e205b88d81eca41f7551ba72e714c734527605af591a8f9f5d39a9ffe9a

Contents?: true

Size: 369 Bytes

Versions: 1

Compression:

Stored size: 369 Bytes

Contents

require 'rake/tasklib'

module Albacore	
	class ExpandTemplatesTask < Rake::TaskLib
		attr_accessor :name
		
		def initialize(name=:expandtemplates, &block)
			@name = name
			@exp = ExpandTemplates.new
			@block = block
			define
		end
		
		def define
			task @name do
				@block.call(@exp) unless @block.nil?
				@exp.expand
			end
		end	
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
albacore-0.0.7 lib/rake/expandtemplatestask.rb