salesforce-deploy-tool 0.3.0 → 0.3.1

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: 262d3cc878de138736ef7fda3f76a791609bac29
4
- data.tar.gz: e28bb6c55dd1c956b504079fe68e59757df3f514
3
+ metadata.gz: 5ae8b58481ff935e02dfabd4ac100aafa0f3bbb3
4
+ data.tar.gz: f8f12ed7717816ca4f09b522e20431ed946cc913
5
5
  SHA512:
6
- metadata.gz: e622d1cea87188f8c9694f14f831920a4a266c3abf2feccecf4d8a319b8680ef1af209515fff2cc3d05ef7cd0449594f32bf38d1b39e0178536269c6034a4ee3
7
- data.tar.gz: b0ddbd4ac59fde005395daba5dd1b4345302bee1379a8e28b661d8c286030cf59d479b20f076880e845500771063635ec16f85a4af4d37f0bfec90c1e8ba4b61
6
+ metadata.gz: a8aa76d6eba422ad937a10bfd0cbf319d84a42c370498a9b2782b817a58d4feff3462ab90ab70713d5a4f96330c5d1bc5f76d659c217d4ddc267aa3878b26472
7
+ data.tar.gz: 1c53b48028abf296e30cc6fede7a90bc219577162575501efe10b847bb720576214db9dac174016367d27f26052e732d29c3fa1bfa7a3b323c0e3cff2eddbb83
data/bin/sf CHANGED
@@ -34,8 +34,17 @@ command :init do |c|
34
34
  c.summary = 'Initialize salesforce sandbox from git'
35
35
  c.description = "Clone the #{config[:git_repo]} to #{config[:git_dir]}"
36
36
  c.example 'usage', 'sf init'
37
+ c.option "--sandbox NAME", "-s NAME", "use 'prod' to deploy production or sandbox name"
37
38
  c.action do |args, options|
38
-
39
+
40
+ # Parameter validation:
41
+ options.sandbox = options.s if options.s
42
+ if options.sandbox.nil? and sandbox.nil?
43
+ puts "error: please specify sandbox using --sandbox or sf sandbox"
44
+ exit 1
45
+ end
46
+ config[:sandbox] = options.sandbox || sandbox
47
+
39
48
  # Initialize
40
49
  sfdt = SalesforceDeployTool::App.new config
41
50
 
@@ -1,3 +1,3 @@
1
1
  module SalesforceDeployTool
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
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: 0.3.0
4
+ version: 0.3.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-11-24 00:00:00.000000000 Z
11
+ date: 2014-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler