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

Enable SignalException cop

This commit is contained in:
William Johnston 2016-03-01 09:07:42 -06:00 committed by William Johnston
parent 90574e065b
commit 3f6e4dbcde
5 changed files with 4 additions and 6 deletions

View file

@ -27,8 +27,6 @@ Style/SpaceAfterComma:
Enabled: false
Style/RegexpLiteral:
Enabled: false
Style/SignalException:
Enabled: false
Style/PercentLiteralDelimiters:
Enabled: false
Style/BlockDelimiters:

View file

@ -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

View file

@ -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

View file

@ -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)

View file

@ -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