From 4ead0cc8f777e1811e05a8e4fd3a2bc56c004314 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Wed, 8 May 2013 15:29:55 -0700 Subject: [PATCH] Add rollback_on_error for safer deployment Will probably have to make this situational for running test classes --- lib/abusetheforce.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/abusetheforce.rb b/lib/abusetheforce.rb index eedab5a..6ebec20 100644 --- a/lib/abusetheforce.rb +++ b/lib/abusetheforce.rb @@ -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