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
|
||||
Style/TrailingCommaInLiteral:
|
||||
Enabled: false
|
||||
Style/CommandLiteral:
|
||||
Enabled: false
|
||||
|
||||
# Needs refactors
|
||||
Metrics/PerceivedComplexity:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue