Permalink
Browse files

:user is already use by ssh connection. introduce :db_username to avo…

…id conflict
  • Loading branch information...
arlo committed Jun 16, 2010
1 parent 36e81bc commit 23d1a21f281230627f7e0c13fd24de27714587cd
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/capifony.rb
View
@@ -151,11 +151,11 @@ def load_database_config(data, env)
namespace :configure do
desc "Configure database DSN"
task :database do
- prompt_with_default(:dsn, "mysql:host=localhost;dbname=example_dev")
- prompt_with_default(:user, "root")
- prompt_with_default(:pass, "") { |q| q.echo = "x" }
+ prompt_with_default(:dsn, "mysql:host=localhost;dbname=example_dev")
+ prompt_with_default(:db_username, "root")
+ prompt_with_default(:db_password, "") { |q| q.echo = "x" }
- run "#{php_bin} #{latest_release}/symfony configure:database '#{dsn}' '#{user}' '#{pass}'"
+ run "#{php_bin} #{latest_release}/symfony configure:database '#{dsn}' '#{db_username}' '#{db_password}'"
end
end

0 comments on commit 23d1a21

Please sign in to comment.