salesforce-deploy-tool 0.9.10 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/bin/sf +1 -7
- data/lib/salesforcedeploytool/app.rb +18 -2
- data/lib/salesforcedeploytool/version.rb +1 -1
- data/salesforce-deploy-tool.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6f931fd9030030a4beb15e382ab0a2685c40085
|
4
|
+
data.tar.gz: 4f97fed1d5d2ff04ff45ab15c42424be6c9af7c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 015122f6f493e9924430f3cf0d43d759634b624eafcceae0e3993897e54d2eddacfbdd0ce84eb2faade2d0da67bd63f169fb196f0543628e2359294743d5b5d2
|
7
|
+
data.tar.gz: 2ebe6d828773c117bd6c0396c0e02a0046065743c2bf20af0d966856b5da5fc9c9987e1b527ac6c9324ad8a900b06917ea289aceafed207707ac573911a635d8
|
data/.gitignore
CHANGED
data/bin/sf
CHANGED
@@ -142,14 +142,8 @@ command :push do |c|
|
|
142
142
|
config[:test] = options.test.nil? ? false : true
|
143
143
|
config[:debug] = options.debug.nil? ? false : true
|
144
144
|
|
145
|
-
# Parameter Normalization
|
146
|
-
config[:git_dir] = File.expand_path config[:git_dir]
|
147
|
-
config[:tmp_dir] = File.expand_path config[:tmp_dir]
|
148
|
-
config[:version_file] = File.expand_path config[:version_file]
|
149
|
-
config[:deploy_ignore_files].map! {|f| File.expand_path File.join(config[:git_dir],f)}
|
150
|
-
|
151
145
|
# Initialize
|
152
|
-
sfdt = SalesforceDeployTool::App.new config
|
146
|
+
sfdt = SalesforceDeployTool::App.new config.clone
|
153
147
|
|
154
148
|
# Remove destructive change if there is one
|
155
149
|
DESTRUCTIVE_CHANGE_FILE = File.join(config[:git_dir],'src','destructiveChanges.xml')
|
@@ -6,11 +6,19 @@ module SalesforceDeployTool
|
|
6
6
|
attr_accessor :test
|
7
7
|
|
8
8
|
def initialize config
|
9
|
-
|
9
|
+
|
10
|
+
# Parameter Normalization
|
11
|
+
config[:git_dir] = File.expand_path config[:git_dir]
|
12
|
+
config[:tmp_dir] = File.expand_path config[:tmp_dir]
|
13
|
+
config[:version_file] = File.expand_path config[:version_file]
|
14
|
+
config[:deploy_ignore_files] = config[:deploy_ignore_files].map {|f| File.expand_path File.join(config[:git_dir],f)}
|
15
|
+
|
16
|
+
# Defaults
|
10
17
|
@debug = config[:debug]
|
11
18
|
@test = config[:test]
|
12
|
-
|
13
19
|
@build_number = 'N/A'
|
20
|
+
|
21
|
+
# Config file validation:
|
14
22
|
( @git_repo = config[:git_repo] ).nil? and raise "Invalid Config: git_repo not found"
|
15
23
|
( @git_dir = config[:git_dir] ).nil? and raise "Invalid Config: git_dir not found"
|
16
24
|
( @sandbox = config[:sandbox] ).nil? and raise "Invalid Config: sandbox not found"
|
@@ -20,6 +28,8 @@ module SalesforceDeployTool
|
|
20
28
|
( @commit_hash_pattern = config[:commit_hash_pattern] ).nil? and raise "Invalid Config: commit_hash_pattern not found"
|
21
29
|
( @version_file = config[:version_file] ).nil? and raise "Invalid Config: version_file not found"
|
22
30
|
|
31
|
+
|
32
|
+
|
23
33
|
config[:username].nil? and raise "Invalid Config: username not found, please run `sf config`"
|
24
34
|
config[:password].nil? and raise "Invalid Config: password not found, please run `sf config`"
|
25
35
|
|
@@ -103,8 +113,14 @@ module SalesforceDeployTool
|
|
103
113
|
exec_options[:failmsg] = nil
|
104
114
|
end
|
105
115
|
|
116
|
+
# Pull the code
|
106
117
|
exit_code = myexec full_cmd, exec_options
|
107
118
|
|
119
|
+
# Delete files to be ignored:
|
120
|
+
@deploy_ignore_files.each do |file|
|
121
|
+
FileUtils.rm file if File.exists? file
|
122
|
+
end
|
123
|
+
|
108
124
|
exit exit_code if exit_code != 0
|
109
125
|
|
110
126
|
end
|
@@ -24,5 +24,5 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_runtime_dependency 'git', "~> 1.2"
|
25
25
|
spec.add_runtime_dependency 'colorize', "~> 0.7"
|
26
26
|
spec.add_runtime_dependency 'commander', "~> 4.2"
|
27
|
-
spec.add_runtime_dependency 'salesforce-dcgen', "~> 0.
|
27
|
+
spec.add_runtime_dependency 'salesforce-dcgen', "~> 0.4.0"
|
28
28
|
end
|
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: 0.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Breinlinger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
89
|
+
version: 0.4.0
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
96
|
+
version: 0.4.0
|
97
97
|
description: ''
|
98
98
|
email:
|
99
99
|
- "<juan.brein@breins.net>"
|