Skip to content
Browse files

fixed confirmation messages

 - changed from "(yes or no)" to more default "(y/N)"
 - added missing confirmation to `:doctrine:build_db_and_load`
  • Loading branch information...
1 parent dca7fa8 commit 0a0e2a8cbb3597c97f0c9ea141d374c1299c198e @everzet committed
Showing with 10 additions and 8 deletions.
  1. +10 −8 lib/capifony.rb
View
18 lib/capifony.rb
@@ -329,28 +329,30 @@ def load_database_config(data, env)
desc "Generate code & database based on your schema"
task :build_all do
- if Capistrano::CLI.ui.agree("Do you really want to rebuild #{symfony_env}'s database ? (type yes or no)")
+ if Capistrano::CLI.ui.agree("Do you really want to rebuild #{symfony_env}'s database? (y/N)")
run "#{php_bin} #{latest_release}/symfony doctrine:build --all --no-confirmation --env=#{symfony_env}"
end
end
desc "Generate code & database based on your schema & load fixtures"
task :build_all_and_load do
- if Capistrano::CLI.ui.agree("Do you really want to rebuild #{symfony_env}'s database and load #{symfony_env}'s fixtures ? (type yes or no)")
+ if Capistrano::CLI.ui.agree("Do you really want to rebuild #{symfony_env}'s database and load #{symfony_env}'s fixtures? (y/N)")
run "#{php_bin} #{latest_release}/symfony doctrine:build --all --and-load --no-confirmation --env=#{symfony_env}"
end
end
desc "Generate sql & database based on your schema"
task :build_db do
- if Capistrano::CLI.ui.agree("Do you really want to rebuild #{symfony_env}'s database ? (type yes or no)")
+ if Capistrano::CLI.ui.agree("Do you really want to rebuild #{symfony_env}'s database? (y/N)")
run "#{php_bin} #{latest_release}/symfony doctrine:build --sql --db --no-confirmation --env=#{symfony_env}"
end
end
desc "Generate sql & database based on your schema & load fixtures"
task :build_db_and_load do
- run "#{php_bin} #{latest_release}/symfony doctrine:build --sql --db --and-load --no-confirmation --env=#{symfony_env}"
+ if Capistrano::CLI.ui.agree("Do you really want to rebuild #{symfony_env}'s database and load #{symfony_env}'s fixtures? (y/N)")
+ run "#{php_bin} #{latest_release}/symfony doctrine:build --sql --db --and-load --no-confirmation --env=#{symfony_env}"
+ end
end
end
@@ -379,28 +381,28 @@ def load_database_config(data, env)
desc "Generate code & database based on your schema"
task :build_all do
- if Capistrano::CLI.ui.agree("Do you really want to rebuild #{symfony_env}'s database ? (type yes or no)")
+ if Capistrano::CLI.ui.agree("Do you really want to rebuild #{symfony_env}'s database? (y/N)")
run "#{php_bin} #{latest_release}/symfony propel:build --sql --db --no-confirmation --env=#{symfony_env}"
end
end
desc "Generate code & database based on your schema & load fixtures"
task :build_all_and_load do
- if Capistrano::CLI.ui.agree("Do you really want to rebuild #{symfony_env}'s database and load #{symfony_env}'s fixtures ? (type yes or no)")
+ if Capistrano::CLI.ui.agree("Do you really want to rebuild #{symfony_env}'s database and load #{symfony_env}'s fixtures? (y/N)")
run "#{php_bin} #{latest_release}/symfony propel:build --sql --db --and-load --no-confirmation --env=#{symfony_env}"
end
end
desc "Generate sql & database based on your schema"
task :build_db do
- if Capistrano::CLI.ui.agree("Do you really want to rebuild #{symfony_env}'s database ? (type yes or no)")
+ if Capistrano::CLI.ui.agree("Do you really want to rebuild #{symfony_env}'s database? (y/N)")
run "#{php_bin} #{latest_release}/symfony propel:build --sql --db --no-confirmation --env=#{symfony_env}"
end
end
desc "Generate sql & database based on your schema & load fixtures"
task :build_db_and_load do
- if Capistrano::CLI.ui.agree("Do you really want to rebuild #{symfony_env}'s database and load #{symfony_env}'s fixtures ? (type yes or no)")
+ if Capistrano::CLI.ui.agree("Do you really want to rebuild #{symfony_env}'s database and load #{symfony_env}'s fixtures? (y/N)")
run "#{php_bin} #{latest_release}/symfony propel:build --sql --db --and-load --no-confirmation --env=#{symfony_env}"
end
end

0 comments on commit 0a0e2a8

Please sign in to comment.
Something went wrong with that request. Please try again.