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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 43f650e68a92b0066ae663ec5d6057821912527a
4
- data.tar.gz: 1a77815ff97ee041e48d58e9b8124797553dd0f2
3
+ metadata.gz: ba29983f91588b0c40f5822c403c81b303d68b06
4
+ data.tar.gz: 83dcecf2534b368e47fecd87ecd2621963fe044e
5
5
  SHA512:
6
- metadata.gz: 891d10f43d639f2f16fbded39c1a5de7a529b90490fbcae678a89ad415317c7df1c812e68753ef88d9e2fe1402337fbeb3e87d2f76a88f6a4c6413393ece75bd
7
- data.tar.gz: 6f1a2a89ec8fc250f319a90869476c7fd164c19e1b1e66f4bfe399f58615cbce8473591712532d00ec7bccc9ad9eb28e08503e6ddeb7683bcd4ca8181001adee
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'
@@ -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']
@@ -1,3 +1,3 @@
1
1
  module SalesforceDeployTool
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  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: 1.1.0
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-25 00:00:00.000000000 Z
11
+ date: 2015-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler