Class: KomachiFoundation::Generator

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/komachi_foundation/generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_pathsObject



8
9
10
# File 'lib/komachi_foundation/generator.rb', line 8

def self.source_paths
  @_source_paths ||= Source.list
end

Instance Method Details

#copy_templatesObject



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