bin/sf in salesforce-deploy-tool-0.9.7 vs bin/sf in salesforce-deploy-tool-0.9.8

- old
+ new

@@ -133,12 +133,12 @@ if options.sandbox.nil? and sandbox.nil? puts "error: please specify the sandbox to pull from using --sandbox" exit 1 end config[:sandbox] = options.sandbox || sandbox - config[:debug] = options.debug.nil? ? false : true config[:test] = options.test.nil? ? false : true + config[:debug] = options.debug.nil? ? false : true # Parameter Normalization config[:git_dir] = File.expand_path config[:git_dir] config[:tmp_dir] = File.expand_path config[:tmp_dir] config[:version_file] = File.expand_path config[:version_file] @@ -155,12 +155,19 @@ # even when it is a destructive change. This is because if a class is referencing # a field to be deleted, then we first need to push the class to remove that # reference and only then SF will allow us to remove the field on the second # push begin + # Set version sfdt.build_number = options.build_number if not options.build_number.nil? sfdt.set_version + + # Disable test deploy unless is an append. The test deploy will happen + # at the end + sfdt.test = false if ! options.append + + # push sfdt.push ensure sfdt.clean_version end @@ -189,11 +196,17 @@ dc_gen.generate_destructive_changes $stdout = stdout_tmp # Destructive push begin + # Set version sfdt.build_number = options.build_number if not options.build_number.nil? sfdt.set_version + + # Enable test if option enabled + sfdt.test = options.test.nil? ? false : true + + # Push sfdt.push ensure sfdt.clean_version end end