Sha256: d1e0e561297a5dbcd9c849897b45e4906316120a496c7961145250a69c52ce94

Contents?: true

Size: 342 Bytes

Versions: 1

Compression:

Stored size: 342 Bytes

Contents

require 'rake/tasklib'

module Albacore
	class ZipTask < Rake::TaskLib
		attr_accessor :name
		
		def initialize(name=:zip, &block)
			@name = name
			@zip = ZipDirectory.new
			@block = block
			define
		end
		
		def define
			task name do
				@block.call(@zip) unless @block.nil?
				@zip.package
			end
		end		
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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