Add rollback_on_error for safer deployment
Will probably have to make this situational for running test classes
This commit is contained in:
parent
5d07fc9059
commit
4ead0cc8f7
|
@ -90,7 +90,7 @@ module AbuseTheForce
|
||||||
end
|
end
|
||||||
|
|
||||||
if File.file? File.join(dpath, 'package.xml')
|
if File.file? File.join(dpath, 'package.xml')
|
||||||
@client.deploy(File.expand_path(dpath)).
|
@client.deploy(File.expand_path(dpath), { :rollback_on_error => true }).
|
||||||
on_complete { |job|
|
on_complete { |job|
|
||||||
puts "Finished deploy #{job.id}!"
|
puts "Finished deploy #{job.id}!"
|
||||||
result = job.result
|
result = job.result
|
||||||
|
|
Loading…
Reference in New Issue