Sha256: 353c226010082c8fba0a92fb26e02cc6cec1000b283460ebb0447e4254099b6a
Contents?: true
Size: 422 Bytes
Versions: 1
Compression:
Stored size: 422 Bytes
Contents
module Clearest class FoldersGenerator < AbstractGenerator def initialize(_options = {}) super _options @options[:list_folder].each do |folder| next if folder == '.' fullpath = "#{@options[:target_path]}/#{@options[:project_name]}/#{folder}" FileUtils.mkdir_p fullpath puts " #{'creating'.colorize(:light_green)} (folder) #{fullpath}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
clearest-0.0.1a | lib/clearest/generators/4_folders.rb |