mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Enable RescueModifier cop
This commit is contained in:
parent
90574e065b
commit
91777db59f
3 changed files with 8 additions and 4 deletions
|
@ -39,8 +39,6 @@ Style/Lambda:
|
|||
Enabled: false
|
||||
Style/SingleLineBlockParams:
|
||||
Enabled: false
|
||||
Style/RescueModifier:
|
||||
Enabled: false
|
||||
Style/ModuleFunction:
|
||||
Enabled: false
|
||||
Style/BlockEndNewline:
|
||||
|
|
|
@ -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|
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue