6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/easy_gen/easy_gen_generator.rb', line 6
def copy_templates
unless File.exist? "app/#{base_location}/application_#{generator_type}.rb"
template "application_#{generator_type}.rb", "app/#{base_location}/application_#{generator_type}.rb"
end
template "#{generator_type}.rb", "app/#{location}/#{file_path}_#{generator_type}.rb"
template "#{generator_type}_test.rb", "test/#{location}/#{file_path}_#{generator_type}_test.rb"
if no_files?
teardown ['app', 'test']
end
if no_files_for_module?
teardown ['app', 'test']
end
end
|