17
18
19
20
21
22
23
24
25
26
27
28
|
# File 'lib/taza/generators/project_generator.rb', line 17
def create
template('templates/project/Gemfile.tt', 'Gemfile') unless File.exists? 'Gemfile'
template('templates/project/Rakefile.tt', 'Rakefile') unless File.exists? 'Rakefile'
template('templates/project/config.yml.tt', 'config/config.yml') unless File.exists? 'config/config.yml'
empty_directory 'lib/sites'
empty_directory 'spec'
template('templates/project/spec_helper.rb.tt', 'spec/spec_helper.rb') unless File.exists? 'spec/spec_helper.rb'
empty_directory 'spec/isolation'
empty_directory 'spec/integration'
empty_directory 'bin'
template('templates/project/taza.tt', 'bin/taza') unless File.exists? 'bin/taza'
end
|