Sha256: bb2ed55afa704ae0aed2f21981d12ff60c7602ed419e5ef7ff5697871c97595b
Contents?: true
Size: 731 Bytes
Versions: 41
Compression:
Stored size: 731 Bytes
Contents
# frozen_string_literal: true require 'eac_ruby_utils/core_ext' require 'avm/files/appendable/resource_base' require 'eac_templates/variables/directory' module Avm module Files module Appendable class TemplatizedDirectory < ::Avm::Files::Appendable::ResourceBase attr_reader :source_path def initialize(appender, source_path) super(appender) @source_path = source_path end def write_on(target_dir) raise 'Variables source not set' if appender.variables_source.blank? ::EacTemplates::Variables::Directory.new(source_path).apply( appender.variables_source, target_dir ) end end end end end
Version data entries
41 entries across 41 versions & 2 rubygems