mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Merge pull request #1604 from will-in-wi/rubocop_signal_exception
Enable SignalException cop
This commit is contained in:
commit
5b76814276
5 changed files with 4 additions and 6 deletions
|
@ -23,8 +23,6 @@ Style/Documentation:
|
|||
Enabled: false
|
||||
Style/RegexpLiteral:
|
||||
Enabled: false
|
||||
Style/SignalException:
|
||||
Enabled: false
|
||||
Style/PercentLiteralDelimiters:
|
||||
Enabled: false
|
||||
Style/BlockDelimiters:
|
||||
|
|
|
@ -28,7 +28,7 @@ module VagrantHelpers
|
|||
if (status = vagrant_cli_command("ssh -c #{command.inspect}")).success?
|
||||
true
|
||||
else
|
||||
fail VagrantSSHCommandError, status
|
||||
raise VagrantSSHCommandError, status
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -8,7 +8,7 @@ module Capistrano
|
|||
if match?
|
||||
self
|
||||
else
|
||||
fail "Capfile locked at #{version}, but #{current_version} is loaded"
|
||||
raise "Capfile locked at #{version}, but #{current_version} is loaded"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -136,7 +136,7 @@ module Capistrano
|
|||
end
|
||||
|
||||
context "block is passed to fetch" do
|
||||
subject { config.fetch(:key, :default) { fail "we need this!" } }
|
||||
subject { config.fetch(:key, :default) { raise "we need this!" } }
|
||||
|
||||
it "returns the block value" do
|
||||
expect { subject }.to raise_error(RuntimeError)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
set :fail, proc { fail }
|
||||
set :fail, proc { raise }
|
||||
before "deploy:starting", :fail do
|
||||
on roles :all do
|
||||
execute :mkdir, "-p", shared_path
|
||||
|
|
Loading…
Reference in a new issue