mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Enable the IfUnlessModifier cop
This commit is contained in:
parent
fb82ecea53
commit
a0ac67d84f
2 changed files with 2 additions and 8 deletions
|
@ -41,8 +41,6 @@ Style/BlockDelimiters:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
Style/ConditionalAssignment:
|
Style/ConditionalAssignment:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
Style/IfUnlessModifier:
|
|
||||||
Enabled: false
|
|
||||||
Style/Lambda:
|
Style/Lambda:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
Style/EmptyLiteral:
|
Style/EmptyLiteral:
|
||||||
|
|
|
@ -124,9 +124,7 @@ namespace :deploy do
|
||||||
target = release_path.join(dir)
|
target = release_path.join(dir)
|
||||||
source = shared_path.join(dir)
|
source = shared_path.join(dir)
|
||||||
next if test "[ -L #{target} ]"
|
next if test "[ -L #{target} ]"
|
||||||
if test "[ -d #{target} ]"
|
execute :rm, "-rf", target if test "[ -d #{target} ]"
|
||||||
execute :rm, "-rf", target
|
|
||||||
end
|
|
||||||
execute :ln, "-s", source, target
|
execute :ln, "-s", source, target
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -142,9 +140,7 @@ namespace :deploy do
|
||||||
target = release_path.join(file)
|
target = release_path.join(file)
|
||||||
source = shared_path.join(file)
|
source = shared_path.join(file)
|
||||||
next if test "[ -L #{target} ]"
|
next if test "[ -L #{target} ]"
|
||||||
if test "[ -f #{target} ]"
|
execute :rm, target if test "[ -f #{target} ]"
|
||||||
execute :rm, target
|
|
||||||
end
|
|
||||||
execute :ln, "-s", source, target
|
execute :ln, "-s", source, target
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue