lib/classiccms/cli.rb in classiccms-0.3.7 vs lib/classiccms/cli.rb in classiccms-0.3.8

- old
+ new

@@ -27,9 +27,15 @@ mongoid = File.read(File.join(Dir.pwd, app_name, 'config/mongoid.yml')).gsub('$', app_name) File.open(File.join(Dir.pwd, app_name, 'config/mongoid.yml'), 'w') do |f| f.puts mongoid end + #replace database name + redis = File.read(File.join(Dir.pwd, app_name, 'config/redis.yml')).gsub('$', app_name) + File.open(File.join(Dir.pwd, app_name, 'config/redis.yml'), 'w') do |f| + f.puts redis + end + puts "#{app_name} created!" end end def self.server #first check if this is actualy an app