Sha256: 8f89e68f68675134b8c2832129245e932f9cc733bdfbb8dd2e4b726e654f00de
Contents?: true
Size: 563 Bytes
Versions: 4
Compression:
Stored size: 563 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, verbose: true) FileUtils.cp(@template_files, @output_path, verbose: true) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
bhook-0.1.4 | lib/bhook/theme_generator.rb |
bhook-0.1.3 | lib/bhook/theme_generator.rb |
bhook-0.1.2 | lib/bhook/theme_generator.rb |
bhook-0.1.1 | lib/bhook/theme_generator.rb |