lib/ms_deploy/recipes/setup.rb in ms_deploy-0.1.7 vs lib/ms_deploy/recipes/setup.rb in ms_deploy-0.1.8
- old
+ new
@@ -9,11 +9,11 @@
end
end
desc "Set up shared directory structure"
task :create_shared_folders do
- shared_directories_to_create.each { |directory| run "mkdir -p #{directory}" }
+ directories_to_create.each { |directory| run "mkdir -p #{directory}" }
end
task :database do
_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): ")
@@ -29,11 +29,12 @@
end
end
end
end
- before :"deploy:setup", :"deploy:prepare:create_config_files";
- before :"deploy:setup", :"deploy:prepare:create_shared_folders";
+ before 'deploy:setup', 'deploy:prepare:database';
+ before :'deploy:setup', :'deploy:prepare:create_config_files';
+ before :'deploy:setup', :'deploy:prepare:create_shared_folders';
end
def config_file_path(config_file_name)
config_file = "#{rails_root}/config/#{config_file_name}"