lib/ms_deploy/recipes/setup.rb in ms_deploy-0.1.9 vs lib/ms_deploy/recipes/setup.rb in ms_deploy-0.2.0
- old
+ new
@@ -13,14 +13,14 @@
task :create_shared_folders do
directories_to_create.each { |directory| run "mkdir -p #{directory}" }
end
task :database do
- set :db_admin_user, 'root'
- set :db_admin_password, Capistrano::CLI.password_prompt("Type your mysql password for user '#{db_admin_user}' (not set if empty): ")
- set :db_name, application.gsub(/\W+/, '')[0..5] + '_' + rails_env.to_s
- set :db_user_name, application
- set :db_user_password, ''
+ _cset :db_admin_user, 'root'
+ _cset :db_admin_password, Capistrano::CLI.password_prompt("Type your mysql password for user '#{db_admin_user}' (not set if empty): ")
+ _cset :db_name, application.gsub(/\W+/, '')[0..5] + '_' + rails_env.to_s
+ _cset :db_user_name, application
+ _cset :db_user_password, ''
unless db_admin_password.to_s.empty?
unless database_exits?
create_database
end