Sha256: 126298e648370f94814fe954cd1e99e3dfdfa13d0a98f32bb25a458a210539e9
Contents?: true
Size: 544 Bytes
Versions: 3
Compression:
Stored size: 544 Bytes
Contents
# frozen_string_literal: true module Specimen module Generator # Do not move this class to not screw up the template lookup path! class FileByTemplate < GeneratorBase argument :template_path, type: :string argument :destination, type: :string argument :data, type: :hash, default: {} def self.source_root File.dirname(__FILE__) end # Example template_path => 'project/templates/root/.gemrc' def create template(template_path, destination, data) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems