Class: EasyHtmlGenerator::Generator::Structure

Inherits:
Base
  • Object
show all
Defined in:
lib/easy_html_generator/generator/structure.rb

Overview

this generator creates dist paths

Instance Attribute Summary

Attributes inherited from Base

#config

Instance Method Summary collapse

Methods inherited from Base

#enabled?, #file_changed?, #generate, #initialize, #log, #log_running, #repetitive?, #store_file_hash, #tasks

Constructor Details

This class inherits a constructor from EasyHtmlGenerator::Generator::Base

Instance Method Details

#generate!(_config) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/easy_html_generator/generator/structure.rb', line 9

def generate!(_config)
  @project.config.paths.dist.each do |_index, dir|
    next if dir.empty?

    FileUtils.mkdir_p("#{@project.dist_path}/#{dir}")
  end
end