Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for sensio/distribution-bundle@~5.0.0 #49

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/capistrano/symfony/defaults.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,6 @@

# Assetic dump flags
set :assetic_dump_flags, ''

# SensioDistribution is version 5 or higher
set :sensio_distribution_version_5, false
9 changes: 9 additions & 0 deletions lib/capistrano/symfony/dsl/paths.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ def symfony_config_path
release_path.join(fetch(:app_config_path))
end

def sensio_distribution_bootstrap_path
bootstrap_path = release_path.join('vendor/sensio/distribution-bundle/')

unless fetch(:sensio_distribution_version_5)
bootstrap_path += 'Sensio/Bundle/DistributionBundle/'
end

bootstrap_path += 'Resources/bin/build_bootstrap.php'
end
end
end
end
2 changes: 1 addition & 1 deletion lib/capistrano/tasks/symfony.rake
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ namespace :symfony do
task :build_bootstrap do
on release_roles :all do
within release_path do
execute :php, "./vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php", fetch(:app_path)
execute :php, sensio_distribution_bootstrap_path, fetch(:app_path)
end
end
end
Expand Down