salesforce-deploy-tool 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/sf +2 -2
- data/features/support/env.rb +5 -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: ba29983f91588b0c40f5822c403c81b303d68b06
|
4
|
+
data.tar.gz: 83dcecf2534b368e47fecd87ecd2621963fe044e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a7af88b26b18ff95d8ef3e426aefd8a5945364bc00a33d8f378ba906a15ddd20060b8e9bd409e7d16332d1c1e9ab831ffa0f5d3887cbb44c799d96f214b6272
|
7
|
+
data.tar.gz: 75045aad5e03022740490c82c2317cb31715072fd7eb7ed216e98c28013080cc7e86683fe50aba9eae53f87e6c65b4816b88a55490c8d04cd8e2190814a1e018
|
data/bin/sf
CHANGED
@@ -47,8 +47,8 @@ config[:buildxml_dir] = ENV["SFDT_BUILDXML_DIR"] || config[:buildxml_dir] || ''
|
|
47
47
|
# Minimal config validation
|
48
48
|
abort "Config error: git_dir not found in #{GLOBAL_CONFIG_FILE} or through SFDT_GIT_DIR" if config[:git_dir].nil?
|
49
49
|
abort "Config error: tmp_dir not found in #{GLOBAL_CONFIG_FILE} or through SFDT_TMP_DIR" if config[:tmp_dir].nil?
|
50
|
-
abort "Config error: username not found in #{GLOBAL_CONFIG_FILE} or through SFDT_USERNAME" if config[:username].nil?
|
51
|
-
abort "Config error: password not found in #{GLOBAL_CONFIG_FILE} or through SFDT_PASSWORD" if config[:password].nil?
|
50
|
+
abort "Config error: username not found in #{GLOBAL_CONFIG_FILE} or through SFDT_USERNAME" if config[:username].nil? && ARGV[0] != 'config'
|
51
|
+
abort "Config error: password not found in #{GLOBAL_CONFIG_FILE} or through SFDT_PASSWORD" if config[:password].nil? && ARGV[0] != 'config'
|
52
52
|
|
53
53
|
# If the repository is not cloned then fail:
|
54
54
|
if !File.exists?(config[:git_dir]) && ARGV[0] != 'config'
|
data/features/support/env.rb
CHANGED
@@ -17,6 +17,11 @@ Before do
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
+
# Remove current configurations only once
|
21
|
+
Before '@config' do
|
22
|
+
FileUtils.rm_rf File.join(File.expand_path('~/'),'.sf')
|
23
|
+
end
|
24
|
+
|
20
25
|
# Before push and pull clone the repository
|
21
26
|
Before '@push,@pull' do
|
22
27
|
uri = ENV['SFDT_GIT_REPO']
|
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: 1.
|
4
|
+
version: 1.2.0
|
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-02
|
11
|
+
date: 2015-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|