salesforce-deploy-tool 1.0.1 → 1.0.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 +1 -1
- data/features/push.feature +15 -0
- 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: 3f4b94c6f8576fa46b1bfc8e25793d089e07405f
|
4
|
+
data.tar.gz: 9244d96b6ec69ac3f7d2bbd2ceeae8fd2e89ad03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 483e13bce6984e2ea5c1635967f14dbdd489b620af450eb8322371c59557a2c0aa6cfacfc5cd341af712cbb30fb0ee662a2713c76bccd920ca3e635bddba483e
|
7
|
+
data.tar.gz: cffb9eff79fb2ca7075e304b7733d124b0fe955d9197adf3fc88a6f96f7cd130d5245d4b5d82c8d611892b3424b0901191843d76c1f27cb6c565f2acb3e54203
|
data/bin/sf
CHANGED
@@ -36,7 +36,7 @@ config[:commit_hash_pattern] = ENV["SFDT_COMMIT_HASH_PATTERN"] || config[:
|
|
36
36
|
config[:git_repo] = ENV["SFDT_GIT_REPO"] || config[:git_repo]
|
37
37
|
config[:username] = ENV["SFDT_USERNAME"] || config[:username]
|
38
38
|
config[:password] = ENV["SFDT_PASSWORD"] || config[:password]
|
39
|
-
config[:deploy_ignore_files] = ENV["SFDT_DEPLOY_IGNORE_FILES"].nil? ? config[:deploy_ignore_files] : ENV["
|
39
|
+
config[:deploy_ignore_files] = ENV["SFDT_DEPLOY_IGNORE_FILES"].nil? ? config[:deploy_ignore_files] : ENV["SFDT_DEPLOY_IGNORE_FILES"].split(',')
|
40
40
|
|
41
41
|
# Default values
|
42
42
|
config[:buildxml_dir] = ENV["SFDT_BUILDXML_DIR"] || config[:buildxml_dir] || ''
|
data/features/push.feature
CHANGED
@@ -122,3 +122,18 @@ Feature: Push code to salesforce
|
|
122
122
|
^INFO: Deploying code to env_a:.*OK$
|
123
123
|
"""
|
124
124
|
|
125
|
+
@new
|
126
|
+
Scenario: Push code to a sandbox excluding files
|
127
|
+
Given I set the environment variables to:
|
128
|
+
| variable | value |
|
129
|
+
| SFDT_DEPLOY_IGNORE_FILES | src/layouts/test.layout,src/layouts/another_test.layout |
|
130
|
+
When I run `sf push`
|
131
|
+
#TODO: Then the files listed in SFDT_DEPLOY_IGNORE_FILES should be ignored by sf when deploying
|
132
|
+
Then the exit status should be 0
|
133
|
+
And the output should match:
|
134
|
+
"""
|
135
|
+
^INFO: Pulling changes from env_a to temporary directory .*tmp_repo.* to generate destructiveChanges.xml.*OK$
|
136
|
+
^INFO: Creating destructive changes xml$
|
137
|
+
^INFO: Deploying code to env_a:.*OK$
|
138
|
+
"""
|
139
|
+
|