Permalink
Browse files

Don't (re)generate code twice, adpat task naming

- since symfony:orm:build_classes is done after every deploy, symfony:doctrine:build_all and sympfony:doctrine:build_all_load don't have to
- rename symfony:orm:build_all to symfony:orm:build_db to reflect change
- rename symfony:orm:build_all_load to symfony:orm:build_db_load to reflect change
  • Loading branch information...
1 parent a551f8e commit 7118cad8466e0e444042ccf28835294168623f8a @arlo arlo committed Jun 15, 2010
Showing with 10 additions and 10 deletions.
  1. +10 −10 lib/capifony.rb
View
@@ -253,13 +253,13 @@ def load_database_config(data, env)
end
desc "Generate database based on your schema"
- task :build_all do
- find_and_execute_task("symfony:#{symfony_orm}:build_all")
+ task :build_db do
+ find_and_execute_task("symfony:#{symfony_orm}:build_db")
end
desc "Generate database based on your schema & load fixtures"
- task :build_all_and_load do
- find_and_execute_task("symfony:#{symfony_orm}:build_all_and_load")
+ task :build_db_and_load do
+ find_and_execute_task("symfony:#{symfony_orm}:build_db_and_load")
end
end
@@ -305,13 +305,13 @@ def load_database_config(data, env)
end
desc "Generate code & database based on your schema"
- task :build_all do
- run "#{php_bin} #{latest_release}/symfony doctrine:build --all --no-confirmation --env=#{symfony_env}"
+ task :build_db do
+ run "#{php_bin} #{latest_release}/symfony doctrine:build --sql --db --no-confirmation --env=#{symfony_env}"
end
desc "Generate code & database based on your schema & load fixtures"
- task :build_all_and_load do
- run "#{php_bin} #{latest_release}/symfony doctrine:build --all --and-load --no-confirmation --env=#{symfony_env}"
+ task :build_db_and_load do
+ run "#{php_bin} #{latest_release}/symfony doctrine:build --sql --db --and-load --no-confirmation --env=#{symfony_env}"
end
end
@@ -339,12 +339,12 @@ def load_database_config(data, env)
end
desc "Generate database based on your schema"
- task :build_all do
+ task :build_db do
run "#{php_bin} #{latest_release}/symfony propel:build --sql --db --no-confirmation --env=#{symfony_env}"
end
desc "Generate database based on your schema & load fixtures"
- task :build_all_and_load do
+ task :build_db_and_load do
run "#{php_bin} #{latest_release}/symfony propel:build --sql --db --and-load --no-confirmation --env=#{symfony_env}"
end
end

0 comments on commit 7118cad

Please sign in to comment.