Skip to content

Commit 1fafc71

Browse files
committed
Allows to customize the working directory, which is not necessarily directly the release directory
1 parent 51b6636 commit 1fafc71

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/capistrano/cakephp/defaults.rb

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
set_if_empty :cakephp_roles, :all
22
set_if_empty :cakephp_flags, ''
33
set_if_empty :cakephp_user, :local_user
4+
set_if_empty :cakephp_working_dir, -> { fetch(:release_path) }
45

56
set_if_empty :linked_dirs, [
67
'logs',

lib/capistrano/tasks/cake.rake

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace :cakephp do
88
command = args[:command_name] || fetch(:cmd)
99

1010
on roles fetch(:cakephp_roles) do
11-
within release_path do
11+
within fetch(:cakephp_working_dir) do
1212
execute "bin/cake", command, *args.extras, fetch(:cakephp_cake_options)
1313
end
1414
end

0 commit comments

Comments
 (0)