Class: KomachiFoundation::Generator
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- KomachiFoundation::Generator
- Includes:
- Thor::Actions
- Defined in:
- lib/komachi_foundation/generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#copy_templates ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/komachi_foundation/generator.rb', line 15 def copy_templates if File.directory?(find_in_source_paths(file_name)) directory file_name elsif template file_name end end |