Skip to content

Commit

Permalink
use release_path method
Browse files Browse the repository at this point in the history
fetch(:release_path) does not return anything when not creating a new
release, as is the case when running one-off commands.

the release_path method however, falls back to current_path, which is
always set
  • Loading branch information
koenpunt committed Oct 26, 2016
1 parent aa31fe4 commit c962155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capistrano/tasks/composer.rake
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ namespace :load do
task :defaults do
set :composer_install_flags, '--no-dev --prefer-dist --no-interaction --quiet --optimize-autoloader'
set :composer_roles, :all
set :composer_working_dir, -> { fetch(:release_path) }
set :composer_working_dir, -> { release_path }
set :composer_dump_autoload_flags, '--optimize'
set :composer_download_url, "https://getcomposer.org/installer"
end
Expand Down

0 comments on commit c962155

Please sign in to comment.