lib/cbaoth.rb in cbaoth-0.0.3 vs lib/cbaoth.rb in cbaoth-0.0.4
- old
+ new
@@ -26,20 +26,21 @@
end
def create_dir_structure wd
puts "creating base app dir structure"
puts
- system "mkdir -p #{wd}/lib #{wd}/bin #{wd}/config #{wd}/db/migrate"
+ system "mkdir -p #{wd}/lib #{wd}/bin #{wd}/config #{wd}/db/migrate #{wd}/log"
end
def generate_base_files wd, gem_dir
puts "generating base files"
puts
base_files = gem_dir + "/base_files"
system "cp #{base_files}/base_gemfile #{wd}/Gemfile"
system "cp #{base_files}/base_rakefile #{wd}/Rakefile"
system "cp #{base_files}/base_readme #{wd}/README.md"
system "cp #{base_files}/base_database.yml #{wd}/config/database.yml"
+ system "touch #{wd}/process.rb"
end
def alert_user app_name
puts
puts "*" * 90