Sha256: b1bb6aaf96574cae5ae005bef49d57f746396e7577c725c2e02921ae81b913a1

Contents?: true

Size: 432 Bytes

Versions: 2

Compression:

Stored size: 432 Bytes

Contents

require 'rake/tasklib'

def expandtemplates(name=:expandtemplates, *args, &block)
  Albacore::ExpandTemplatesTask.new(name, *args, &block)
end
  
module Albacore  
  class ExpandTemplatesTask < Albacore::AlbacoreTask
    def execute(name, task_args)
      @exp = ExpandTemplates.new
      @exp.load_config_by_task_name(name)
      @block.call(@exp, *task_args) unless @block.nil?
      @exp.expand
    end  
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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