Sha256: f6a5c608682e20d7e6da488ffb9350c35ebcbcda97a426c3f46bde8aecfef385
Contents?: true
Size: 571 Bytes
Versions: 2
Compression:
Stored size: 571 Bytes
Contents
require 'fileutils' module Generator class StructureGenerator def generate input_folder, output_folder return if File.directory? output_folder FileUtils::mkdir_p output_folder copy_public_content(input_folder, output_folder) FileUtils::mkdir_p "#{output_folder}/css/" FileUtils::mkdir_p "#{output_folder}/js/" end def copy_public_content input_folder, output_folder src_dir = "#{input_folder}/public" return unless File.directory? src_dir FileUtils::copy_entry(src_dir, output_folder) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
easy_html_creator-1.1.1 | lib/generator/structure_generator.rb |
easy_html_creator-1.1.0 | lib/generator/structure_generator.rb |