salesforce-deploy-tool 0.9.7 → 0.9.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: baeb668054b181c938ef79dd6581437c30f49803
4
- data.tar.gz: 1595a3f037eaba0d60b0f7fc31f4247a69003238
3
+ metadata.gz: 09c82f0b0bbefab55926bbb9bdf242b19dad2d06
4
+ data.tar.gz: d3b6c70b566b8e58f01ce75f8fde8528d29ccc3a
5
5
  SHA512:
6
- metadata.gz: bd284acd9aa3c981a58a95be87ac16b1b370179868d046548a33619cad71165848039321db92533864d06422daa20a0171d655feaa3bec7ff24b942866d76acc
7
- data.tar.gz: f274032393e6a33e9b5edd8675b13ff3aae278a8b76f8d9f9cdb0757d72d1fb7187b0286a660832950d44e0ec4a4f4aae0533b6b88a5610d86215b26253fbc74
6
+ metadata.gz: ad5a7e31a42ef88cffc126a4988e042760c4d534b9b2da65cdb7d5b1e0d7896d132a4a036af33e7c0f51e8ed65ad53462c0ae7606990cf16a37f3967dc8a36ec
7
+ data.tar.gz: 0647599700d16ed60d039f9ae822c522d87c87f8735794719b24a72d89ab71a8d31c62baffca5ce2ce97e532892944e87ea27abd6831ae8daf899998625e4942
data/bin/sf CHANGED
@@ -135,8 +135,8 @@ command :push do |c|
135
135
  exit 1
136
136
  end
137
137
  config[:sandbox] = options.sandbox || sandbox
138
- config[:debug] = options.debug.nil? ? false : true
139
138
  config[:test] = options.test.nil? ? false : true
139
+ config[:debug] = options.debug.nil? ? false : true
140
140
 
141
141
  # Parameter Normalization
142
142
  config[:git_dir] = File.expand_path config[:git_dir]
@@ -157,8 +157,15 @@ command :push do |c|
157
157
  # reference and only then SF will allow us to remove the field on the second
158
158
  # push
159
159
  begin
160
+ # Set version
160
161
  sfdt.build_number = options.build_number if not options.build_number.nil?
161
162
  sfdt.set_version
163
+
164
+ # Disable test deploy unless is an append. The test deploy will happen
165
+ # at the end
166
+ sfdt.test = false if ! options.append
167
+
168
+ # push
162
169
  sfdt.push
163
170
  ensure
164
171
  sfdt.clean_version
@@ -191,8 +198,14 @@ command :push do |c|
191
198
 
192
199
  # Destructive push
193
200
  begin
201
+ # Set version
194
202
  sfdt.build_number = options.build_number if not options.build_number.nil?
195
203
  sfdt.set_version
204
+
205
+ # Enable test if option enabled
206
+ sfdt.test = options.test.nil? ? false : true
207
+
208
+ # Push
196
209
  sfdt.push
197
210
  ensure
198
211
  sfdt.clean_version
@@ -3,6 +3,7 @@ module SalesforceDeployTool
3
3
  class App
4
4
 
5
5
  attr_accessor :build_number
6
+ attr_accessor :test
6
7
 
7
8
  def initialize config
8
9
 
@@ -1,3 +1,3 @@
1
1
  module SalesforceDeployTool
2
- VERSION = "0.9.7"
2
+ VERSION = "0.9.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: salesforce-deploy-tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Breinlinger