salesforce-deploy-tool 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/sfd +15 -7
- data/lib/salesforcedeploytool/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90252790993db9d7832c6921906dbf3220840e96
|
4
|
+
data.tar.gz: 8b5000c1642ddefcf180d144d4f50565f58479f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
2
|
+
require 'yaml'
|
3
|
+
|
4
|
+
CONFIG_FILE = ['/etc/salesforce.yaml','~/.salesforce.yaml']
|
4
5
|
|
5
|
-
|
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
|
8
|
-
|
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
|
|