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
|
Enabled: false
|
||||||
Style/SingleLineBlockParams:
|
Style/SingleLineBlockParams:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
Style/RescueModifier:
|
|
||||||
Enabled: false
|
|
||||||
Style/ModuleFunction:
|
Style/ModuleFunction:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
Style/BlockEndNewline:
|
Style/BlockEndNewline:
|
||||||
|
|
|
@ -3,7 +3,11 @@ Given(/^a test app with the default configuration$/) do
|
||||||
end
|
end
|
||||||
|
|
||||||
Given(/^servers with the roles app and web$/) do
|
Given(/^servers with the roles app and web$/) do
|
||||||
vagrant_cli_command("up") rescue nil
|
begin
|
||||||
|
vagrant_cli_command("up")
|
||||||
|
rescue
|
||||||
|
nil
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
Given(/^a linked file "(.*?)"$/) do |file|
|
Given(/^a linked file "(.*?)"$/) do |file|
|
||||||
|
|
|
@ -16,7 +16,9 @@ module RemoteCommandHelpers
|
||||||
end
|
end
|
||||||
|
|
||||||
def safely_remove_file(_path)
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue