require 'rake/tasklib' module Albacore class AlbacoreTask < ::Rake::TaskLib attr_accessor :name def initialize(name, *args, &block) @block = block @args = args.insert(0, name) @name = name define end def define task *@args do |task, task_args| execute @name.to_s, task_args end end end end