Sha256: 1ab552dcff0748eeb6b6c319df4ca97f09a6c773b144fd98ff870701fbf030a5
Contents?: true
Size: 643 Bytes
Versions: 2
Compression:
Stored size: 643 Bytes
Contents
# typed: strict # frozen_string_literal: true module Bhook class ThemeGenerator extend T::Sig sig { params(output_path: String).void } def initialize(output_path) @output_path = T.let(File.join(output_path, 'theme'), String) @template_files = T.let([Bhook::PAGE_TEMPLATE_PATH, Bhook::AFTER_H1_TEMPLATE_PATH], T::Array[String]) end sig { void } def generate! FileUtils.mkdir_p(@output_path) L.debug("mkdir: #{@output_path}") FileUtils.cp(@template_files, @output_path) L.debug("cp: #{@template_files.join(' ')} #{@output_path}") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bhook-0.1.6 | lib/bhook/theme_generator.rb |
bhook-0.1.5 | lib/bhook/theme_generator.rb |