Sha256: d7269aaa4ae97d2ee78301141e7a8e636d1919650a0daef894ba0d9fc6fcca81
Contents?: true
Size: 723 Bytes
Versions: 6
Compression:
Stored size: 723 Bytes
Contents
# frozen_string_literal: true module Paperwork ## # task generators for building with middleman module Tasks require "rake" ## # file task generator linking source files into the # middleman template directory # class BuildFile < Paperwork::Tasks::BuildDir attr_reader :source include Rake::DSL def initialize(name, source, *dependencies) super(name, source, *dependencies) @source = source end def tasks file self.name => self.dependencies do cp self.source, self.name end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems