Add rollback_on_error for safer deployment

Will probably have to make this situational for running test classes
This commit is contained in:
ViViDboarder 2013-05-08 15:29:55 -07:00
parent 5d07fc9059
commit 4ead0cc8f7

View File

@ -90,7 +90,7 @@ module AbuseTheForce
end
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|
puts "Finished deploy #{job.id}!"
result = job.result