Skip to content

Commit

Permalink
Merge pull request #928 from open-orchestra/update_task_fixture
Browse files Browse the repository at this point in the history
update fixture task
  • Loading branch information
alavieille committed May 17, 2016
2 parents 613f27f + 51f4163 commit 2cf06bb
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions deployment/tasks/fixtures.cap
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
namespace :symfony do
namespace :orchestra do
namespace :mongo do
desc 'Load fixtures'
task :load_fixtures do
on roles(:app) do
execute "cd #{fetch(:deploy_to)}/current && php app/console doctrine:mongodb:fixtures:load --env=prod "
namespace :fixtures do
namespace :load do
desc 'Load all fixtures'
task :all do
on roles(:app) do
execute "cd #{fetch(:deploy_to)}/current && php app/console orchestra:mongodb:fixtures:load --env=prod --type=all "
end
end
desc 'Load production fixtures'
task :production do
on roles(:app) do
execute "cd #{fetch(:deploy_to)}/current && php app/console orchestra:mongodb:fixtures:load --env=prod --type=production "
end
end
desc 'Load functional fixtures'
task :functional do
on roles(:app) do
execute "cd #{fetch(:deploy_to)}/current && php app/console orchestra:mongodb:fixtures:load --env=prod --type=functional "
end
end
end
end
end
Expand Down

0 comments on commit 2cf06bb

Please sign in to comment.