lib/recipes/centos/mysql.rb in capitate-0.1.7 vs lib/recipes/centos/mysql.rb in capitate-0.1.8
- old
+ new
@@ -1,9 +1,16 @@
-namespace :centos do
+namespace :mysql do
- namespace :mysql do
+ namespace :centos do
- desc "Install mysql"
+ desc <<-DESC
+ Install mysql.
+
+ mysql_admin_password_set: Mysql admin password (to set). Defaults to password prompt.
+
+ set :mysql_admin_password_set, Proc.new { Capistrano::CLI.ui.ask('Mysql admin password (to set): ') }
+
+ DESC
task :install do
# Settings
fetch_or_default(:mysql_admin_password_set,
Proc.new { Capistrano::CLI.ui.ask('Mysql admin password (to set): ') })
\ No newline at end of file