Sha256: 718c827bcfd859ec831433b42b88a7cafe0a7d86d73b44d957ef472bea83b4ea
Contents?: true
Size: 436 Bytes
Versions: 2
Compression:
Stored size: 436 Bytes
Contents
# frozen_string_literal: true module Specimen module Generator class FileByTemplate < Commands::BaseGroupCommand argument :template_file, type: :string argument :destination, type: :string argument :data, type: :hash, default: {} def self.source_root "#{File.dirname(__FILE__)}/templates" end def create template(template_file, destination, data) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
specimen-0.0.1.alpha.b | lib/specimen/generator/file_by_template.rb |
specimen-0.0.1.alpha | lib/specimen/generator/file_by_template.rb |