salesforce-deploy-tool 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/sf +11 -2
- data/lib/salesforcedeploytool.rb +1 -0
- data/lib/salesforcedeploytool/app.rb +1 -9
- data/lib/salesforcedeploytool/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 722475f52f0baac2b0fb686ad87975f53b96ebe1
|
4
|
+
data.tar.gz: dda7109d8b424bfba03bd8ddba2974ec977e8bbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02580608dc6beca50b472fbd0217220cc739d18a74a45b3b2527a636651329d2fed511f41b2a8d8d063c8301e8517f5ebde15b5418dbd91d7112055f92203e06
|
7
|
+
data.tar.gz: f93fad016ce7ad0f065d068fd76ca1c8353d1c846a09b3228f2e25c8626e40ea53d03583836e38011e8aa4df5637f54ad3f859af3685c14dcb935df2273ed5e9
|
data/bin/sf
CHANGED
@@ -154,7 +154,12 @@ command :push do |c|
|
|
154
154
|
# reference and only then SF will allow us to remove the field on the second
|
155
155
|
# push
|
156
156
|
sfdt.build_number = options.build_number if not options.build_number.nil?
|
157
|
-
sfdt.
|
157
|
+
sfdt.set_version
|
158
|
+
begin
|
159
|
+
sfdt.push
|
160
|
+
ensure
|
161
|
+
sfdt.clean_version
|
162
|
+
end
|
158
163
|
|
159
164
|
if ! options.append
|
160
165
|
# Pull changes from sandbox to temporary directory:
|
@@ -182,7 +187,11 @@ command :push do |c|
|
|
182
187
|
$stdout = stdout_tmp
|
183
188
|
|
184
189
|
# Destructive push
|
185
|
-
|
190
|
+
begin
|
191
|
+
sfdt.push
|
192
|
+
ensure
|
193
|
+
sfdt.clean_version
|
194
|
+
end
|
186
195
|
end
|
187
196
|
end
|
188
197
|
end
|
data/lib/salesforcedeploytool.rb
CHANGED
@@ -27,7 +27,7 @@ module SalesforceDeployTool
|
|
27
27
|
|
28
28
|
end
|
29
29
|
|
30
|
-
def
|
30
|
+
def set_version
|
31
31
|
|
32
32
|
g = Git.open(@git_dir)
|
33
33
|
|
@@ -104,8 +104,6 @@ module SalesforceDeployTool
|
|
104
104
|
|
105
105
|
exit_code = myexec full_cmd, exec_options
|
106
106
|
|
107
|
-
clean_version
|
108
|
-
|
109
107
|
exit exit_code if exit_code != 0
|
110
108
|
|
111
109
|
end
|
@@ -115,9 +113,6 @@ module SalesforceDeployTool
|
|
115
113
|
# Working dir
|
116
114
|
Dir.chdir @git_dir
|
117
115
|
|
118
|
-
# Add the commit hash to the version file
|
119
|
-
commit_hash
|
120
|
-
|
121
116
|
# Set env variables to run ant
|
122
117
|
env_vars = ""
|
123
118
|
env_vars += " SF_USERNAME=" + @username
|
@@ -153,9 +148,6 @@ module SalesforceDeployTool
|
|
153
148
|
# Push the code
|
154
149
|
exit_code = myexec full_cmd, exec_options
|
155
150
|
|
156
|
-
# Clean changes on version file
|
157
|
-
clean_version
|
158
|
-
|
159
151
|
# exit with exit_code
|
160
152
|
exit exit_code if exit_code != 0
|
161
153
|
|