1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Enable CommandLiteral cop

This commit is contained in:
William Johnston 2016-03-01 09:46:36 -06:00 committed by William Johnston
parent 90574e065b
commit b33df2fe4d
2 changed files with 3 additions and 5 deletions

View file

@ -47,8 +47,6 @@ Style/BlockEndNewline:
Enabled: false
Style/TrailingCommaInLiteral:
Enabled: false
Style/CommandLiteral:
Enabled: false
# Needs refactors
Metrics/PerceivedComplexity:

View file

@ -43,14 +43,14 @@ module TestApp
end
Dir.chdir(test_app_path) do
%x[bundle]
`bundle`
end
end
def install_test_app_with(config)
create_test_app
Dir.chdir(test_app_path) do
%x[bundle exec cap install STAGES=#{stage}]
`bundle exec cap install STAGES=#{stage}`
end
write_local_deploy_file(config)
end
@ -90,7 +90,7 @@ module TestApp
def run(command)
output = nil
Dir.chdir(test_app_path) do
output = %x[#{command}]
output = `#{command}`
end
[$CHILD_STATUS.success?, output]
end