salesforce-deploy-tool 0.0.4 → 0.0.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1c0d5e3f9216c6f43242796a96e391b89e2896cf
4
- data.tar.gz: 9c80af00f08ba98a0b74746c4dcec462b8baf00b
3
+ metadata.gz: 90252790993db9d7832c6921906dbf3220840e96
4
+ data.tar.gz: 8b5000c1642ddefcf180d144d4f50565f58479f5
5
5
  SHA512:
6
- metadata.gz: a911be98dc1ba7246f11abb2ab506899d723c86f568b5f2099a2d37f698aef602e8bea0a4866baa5699a8d2473e11a6b5d680214c537f6441a137b28e9a06ed6
7
- data.tar.gz: ca42ac4ef5abc2b149bb4982153484ae31adca5e4df7a1d978d41527bca1fb07722be91f7ccea20d4c3a92fbc5ac0584026196a80e260c5a1b11e7cf5ed2f75b
6
+ metadata.gz: d0f79c8f0341f83cd1872eb16e0c294f284d899d1edda831317552c896601abea45602d9933cfc6159473dec6c3e5e2737732e78a0477d732b920658d24a9f6e
7
+ data.tar.gz: a7a0bc52c73f567d70e0774f8186941ad972992b719b293ae82ddf79cafa09d023c1a848fcd5b8e0063411290a4ae41cf6b32e0fecffe8f90f9ece2668edb598
data/bin/sfd CHANGED
@@ -1,16 +1,24 @@
1
1
  #!/usr/bin/env ruby
2
- #
3
- require 'salesforcedeploytool'
2
+ require 'yaml'
3
+
4
+ CONFIG_FILE = ['/etc/salesforce.yaml','~/.salesforce.yaml']
4
5
 
5
- CONFIG_FILE = '/etc/salesforce.yaml'
6
+ config = nil
7
+ CONFIG_FILE.each do |cf|
8
+ cf = File.expand_path cf
9
+ if File.exists? cf
10
+ config = YAML::load File.open(cf).read
11
+ break
12
+ end
13
+ end
6
14
 
7
- if File.exists? CONFIG_FILE
8
- config = YAML::load File.open(CONFIG_FILE).read
9
- else
10
- puts "error: /etc/salesforce.yaml not found"
15
+ if config.nil?
16
+ puts "error: /etc/salesforce.yaml or ~/.salesforce.yaml not found"
11
17
  exit 1
12
18
  end
13
19
 
20
+ require 'salesforcedeploytool'
21
+
14
22
  program :version, SalesforceDeployTool::VERSION
15
23
  program :description, 'A cli tool to help manage and deploy salesforce environments with git'
16
24
 
@@ -1,3 +1,3 @@
1
1
  module SalesforceDeployTool
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: salesforce-deploy-tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Breinlinger