lib/salesforcedeploytool/app.rb in salesforce-deploy-tool-0.5.0 vs lib/salesforcedeploytool/app.rb in salesforce-deploy-tool-0.6.0

- old
+ new

@@ -9,10 +9,11 @@ @sandbox = config[:sandbox] @username = @sandbox == 'prod' ? config[:username] : config[:username] + '.' + @sandbox @password = config[:password] @debug = config[:debug] @test = config[:test] + @deploy_ignore_files = config[:deploy_ignore_files] @server_url = @sandbox == 'prod' ? 'https://login.salesforce.com' : 'https://test.salesforce.com' self.clone if ! Dir.exists? File.join(@git_dir,'.git') @@ -105,9 +106,15 @@ cmd = @test ? " ant deployAndTestCode" : " ant deployCode" full_cmd = env_vars + cmd Dir.chdir @git_dir + + # Delete files to be ignored: + @deploy_ignore_files.each do |file| + FileUtils.rm file if File.exists? file + end + exit_code = myexec full_cmd, exec_options exit exit_code if exit_code != 0 end