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