mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Enable CommandLiteral cop
This commit is contained in:
parent
90574e065b
commit
b33df2fe4d
2 changed files with 3 additions and 5 deletions
|
@ -47,8 +47,6 @@ Style/BlockEndNewline:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
Style/TrailingCommaInLiteral:
|
Style/TrailingCommaInLiteral:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
Style/CommandLiteral:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
# Needs refactors
|
# Needs refactors
|
||||||
Metrics/PerceivedComplexity:
|
Metrics/PerceivedComplexity:
|
||||||
|
|
|
@ -43,14 +43,14 @@ module TestApp
|
||||||
end
|
end
|
||||||
|
|
||||||
Dir.chdir(test_app_path) do
|
Dir.chdir(test_app_path) do
|
||||||
%x[bundle]
|
`bundle`
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def install_test_app_with(config)
|
def install_test_app_with(config)
|
||||||
create_test_app
|
create_test_app
|
||||||
Dir.chdir(test_app_path) do
|
Dir.chdir(test_app_path) do
|
||||||
%x[bundle exec cap install STAGES=#{stage}]
|
`bundle exec cap install STAGES=#{stage}`
|
||||||
end
|
end
|
||||||
write_local_deploy_file(config)
|
write_local_deploy_file(config)
|
||||||
end
|
end
|
||||||
|
@ -90,7 +90,7 @@ module TestApp
|
||||||
def run(command)
|
def run(command)
|
||||||
output = nil
|
output = nil
|
||||||
Dir.chdir(test_app_path) do
|
Dir.chdir(test_app_path) do
|
||||||
output = %x[#{command}]
|
output = `#{command}`
|
||||||
end
|
end
|
||||||
[$CHILD_STATUS.success?, output]
|
[$CHILD_STATUS.success?, output]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue