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

Enable RescueModifier cop

This commit is contained in:
William Johnston 2016-03-01 09:34:31 -06:00 committed by William Johnston
parent 90574e065b
commit 91777db59f
3 changed files with 8 additions and 4 deletions

View file

@ -39,8 +39,6 @@ Style/Lambda:
Enabled: false
Style/SingleLineBlockParams:
Enabled: false
Style/RescueModifier:
Enabled: false
Style/ModuleFunction:
Enabled: false
Style/BlockEndNewline:

View file

@ -3,7 +3,11 @@ Given(/^a test app with the default configuration$/) do
end
Given(/^servers with the roles app and web$/) do
vagrant_cli_command("up") rescue nil
begin
vagrant_cli_command("up")
rescue
nil
end
end
Given(/^a linked file "(.*?)"$/) do |file|

View file

@ -16,7 +16,9 @@ module RemoteCommandHelpers
end
def safely_remove_file(_path)
run_vagrant_command("rm #{test_file}") rescue VagrantHelpers::VagrantSSHCommandError
run_vagrant_command("rm #{test_file}")
rescue
VagrantHelpers::VagrantSSHCommandError
end
end