Skip to content

Commit 956e8f8

Browse files
committed
Remove use_set_permissions variable
Checking that permission_method is not false is sufficient
1 parent 9dcf995 commit 956e8f8

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lib/capistrano/symfony/defaults.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,3 @@
4040
set :file_permissions_paths, -> { fetch(:symfony_directory_structure) == 2 ? [fetch(:log_path), fetch(:cache_path)] : [fetch(:var_path)] }
4141
# Method used to set permissions (:chmod, :acl, or :chown)
4242
set :permission_method, false
43-
set :use_set_permissions, false

lib/capistrano/tasks/symfony.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ namespace :symfony do
6060
desc "Set user/group permissions on configured paths"
6161
task :set_permissions do
6262
on release_roles :all do
63-
if fetch(:use_set_permissions)
63+
if fetch(:permission_method) != false
6464
invoke "deploy:set_permissions:#{fetch(:permission_method).to_s}"
6565
end
6666
end

0 commit comments

Comments
 (0)