Skip to content

Commit

Permalink
Support sensio distribution bundle v5
Browse files Browse the repository at this point in the history
Closes #49 with credit to Dmitrii Korotovskii (@korotovsky)
  • Loading branch information
peterjmit committed Jan 16, 2016
1 parent 79ebbb4 commit 873f4da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/capistrano/dsl/symfony.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,13 @@ def symfony_vendor_path
end

def build_bootstrap_path
symfony_vendor_path.join("sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php")
bootstrap_path = symfony_vendor_path.join("sensio/distribution-bundle")

if fetch(:sensio_distribution_version).to_i <= 4
bootstrap_path = bootstrap_path.join("Sensio/Bundle/DistributionBundle")
end

bootstrap_path.join("Resources/bin/build_bootstrap.php")
end

def symfony_console(command, params = '')
Expand Down
1 change: 1 addition & 0 deletions lib/capistrano/symfony/defaults.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
set :symfony_env, "prod"

set :symfony_directory_structure, 2
set :sensio_distribution_version, 4

# symfony-standard edition top-level directories
set :app_path, "app"
Expand Down

0 comments on commit 873f4da

Please sign in to comment.