salesforce-deploy-tool 3.3.3 → 3.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/pull.feature +8 -3
- data/features/push.feature +9 -1
- data/lib/salesforcedeploytool/cli.rb +10 -0
- data/lib/salesforcedeploytool/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee14a47c2132bc74b0d5a67accfcb0e4c929095a
|
4
|
+
data.tar.gz: 3322c0565c5204898765d0ac3f159f8efd269ae8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1ae6a4f805628b794f338563d1971cd6c9f9f3a0622744f83a73ef5c76beaf5e216be9fcff6bb187790ca9c9cee6b4b2a8209ee1a5d65d1ea0ed6d7680643b2
|
7
|
+
data.tar.gz: bcdb8b20f0de72c293a763a8ff48e3ef1f02c257eca7f8df36534505b1eadd09407f6198db24de29e8326ee3bbfba0bb77fea76dd652cd9e0b77424b9983bc8e
|
data/features/pull.feature
CHANGED
@@ -65,7 +65,6 @@ Feature: Pull code from salesforce
|
|
65
65
|
^INFO: Pulling changes from testEnv using url https://test.salesforce.com.*$
|
66
66
|
"""
|
67
67
|
|
68
|
-
@ant
|
69
68
|
Scenario: Retrieve code from the default sandbox with debug output and specifying ant library path
|
70
69
|
When I run `sf pull -d -l lib/ant34.jar`
|
71
70
|
Then the exit status should be 0
|
@@ -80,7 +79,6 @@ Feature: Pull code from salesforce
|
|
80
79
|
^retrieveCode:$
|
81
80
|
"""
|
82
81
|
|
83
|
-
@ant
|
84
82
|
Scenario: Retrieve code from the default sandbox with debug output and specifying ant library path
|
85
83
|
Given I set the environment variables to:
|
86
84
|
| variable | value |
|
@@ -98,7 +96,6 @@ Feature: Pull code from salesforce
|
|
98
96
|
^retrieveCode:$
|
99
97
|
"""
|
100
98
|
|
101
|
-
@ant
|
102
99
|
Scenario: Retrieve code from the default sandbox with debug output and specifying a wrong ant library path
|
103
100
|
When I run `sf pull -d -l lib/invalid_ant34.jar`
|
104
101
|
Then the exit status should be 1
|
@@ -106,3 +103,11 @@ Feature: Pull code from salesforce
|
|
106
103
|
"""
|
107
104
|
^error: ant library file .* not found$
|
108
105
|
"""
|
106
|
+
|
107
|
+
Scenario: Pull code from a sandbox using a invalid parameter sequence should fail
|
108
|
+
When I run `sf pull -s -d prod`
|
109
|
+
Then the exit status should be 1
|
110
|
+
And the output should match:
|
111
|
+
"""
|
112
|
+
^invalid sandbox name .*. Please use a valid sandbox name$
|
113
|
+
"""
|
data/features/push.feature
CHANGED
@@ -375,7 +375,6 @@ Feature: Push code to salesforce
|
|
375
375
|
^deployCode:$
|
376
376
|
"""
|
377
377
|
|
378
|
-
@ant
|
379
378
|
Scenario: Push code to a sandbox using a invalid ant library path should fail
|
380
379
|
When I run `sf push -l lib/invalid_ant34.jar`
|
381
380
|
Then the exit status should be 1
|
@@ -383,3 +382,12 @@ Feature: Push code to salesforce
|
|
383
382
|
"""
|
384
383
|
^error: ant library file .* not found$
|
385
384
|
"""
|
385
|
+
|
386
|
+
@new
|
387
|
+
Scenario: Push code to a sandbox using a invalid parameter sequence should fail
|
388
|
+
When I run `sf push -s -d prod`
|
389
|
+
Then the exit status should be 1
|
390
|
+
And the output should match:
|
391
|
+
"""
|
392
|
+
^invalid sandbox name .*. Please use a valid sandbox name$
|
393
|
+
"""
|
@@ -47,6 +47,11 @@ module SalesforceDeployTool
|
|
47
47
|
exit 1
|
48
48
|
end
|
49
49
|
|
50
|
+
if !options.sandbox.nil? and options.sandbox.match(/\-.*/)
|
51
|
+
puts "invalid sandbox name \"#{options.sandbox}\". Please use a valid sandbox name"
|
52
|
+
exit 1
|
53
|
+
end
|
54
|
+
|
50
55
|
# Config array
|
51
56
|
config[:libant] = config[:libant] || options.libant
|
52
57
|
config[:libant] = File.expand_path(config[:libant]) if config[:libant]
|
@@ -115,6 +120,11 @@ module SalesforceDeployTool
|
|
115
120
|
exit 1
|
116
121
|
end
|
117
122
|
|
123
|
+
if !options.sandbox.nil? and options.sandbox.match(/\-.*/)
|
124
|
+
puts "invalid sandbox name \"#{options.sandbox}\". Please use a valid sandbox name"
|
125
|
+
exit 1
|
126
|
+
end
|
127
|
+
|
118
128
|
if options.libant && !File.exists?(File.expand_path options.libant)
|
119
129
|
puts "error: ant library file #{options.libant} not found"
|
120
130
|
exit 1
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: salesforce-deploy-tool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Breinlinger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|