salesforce-dcgen 0.0.1 → 0.0.2

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: 8309ecc64daeb2c5bd7e1f1422343c5ca16b3c30
4
- data.tar.gz: c1d47909fc91c7130cb7935c2a7a388bf04d7277
3
+ metadata.gz: d5c2be25b5d3d098de066b63f1cc7bbf95aba2b0
4
+ data.tar.gz: 7c082a164ef052713b2d5ca8ebaab9863f4d5566
5
5
  SHA512:
6
- metadata.gz: feb564d64b0d81be96f38092fa24649af87a3e42039ebbb03b51fd9f5372b7445eb173a6bb7cc0380eb5408d3f5a20279a94350c4e150a923bf4272abb87f742
7
- data.tar.gz: a618eeb91548c8c3d28cf00d373be10939dd1a0379ab145b0a63710aec8fe2f81682767eb9fe514e1a4d0020b7c3bf8f25dc5ed61494d76ac95d87e4a5c80cbb
6
+ metadata.gz: d8112b21ab77df6838113f0074851632c11ffa4900524668e6cd0c6f57033789c054551e9f50aa9e70e0e7cccd4f37eb561c14b46b9e4a9fd5f49a7f5ab0dc52
7
+ data.tar.gz: 887107dfc33e6551edbe14a503f87a2c01e621a30e9b5c32b04f2e40df555bd6144f6e6a21bfd0df7dbc66375bf74faf8fd0e1b3d0c874a1873416eba947550d
data/bin/dcgen CHANGED
@@ -30,7 +30,12 @@ parser = OptionParser.new do |opts|
30
30
 
31
31
  end
32
32
 
33
- parser.parse!
33
+ begin
34
+ parser.parse!
35
+ rescue => e
36
+ puts "error: #{e}"
37
+ exit 1
38
+ end
34
39
 
35
40
 
36
41
  if options[:master].nil?
@@ -43,11 +48,16 @@ if options[:destination].nil?
43
48
  exit 1
44
49
  end
45
50
 
46
- dcgen = Dcgen::App.new
51
+ begin
52
+ dcgen = Dcgen::App.new
47
53
 
48
- dcgen.master = options[:master]
49
- dcgen.destination = options[:destination]
54
+ dcgen.master = options[:master]
55
+ dcgen.destination = options[:destination]
50
56
 
51
- dcgen.generate_destructive_changes
57
+ dcgen.generate_destructive_changes
58
+ rescue => e
59
+ puts "error: #{e}"
60
+ exit 1
61
+ end
52
62
 
53
63
 
data/lib/dcgen/app.rb CHANGED
@@ -26,12 +26,12 @@ module Dcgen
26
26
  dc_erb_tpl = File.open(File.join(File.dirname(__FILE__),'..','..','tpl','destructiveChanges.xml.erb')).read
27
27
  renderer = ERB.new(dc_erb_tpl,0,'>')
28
28
 
29
- puts "info: destructiveChanges.xml successfully generated"
30
-
31
29
  File.open('destructiveChanges.xml','w') do |file|
32
30
  file.write renderer.result(binding)
33
31
  end
34
32
 
33
+ puts "info: destructiveChanges.xml successfully generated"
34
+
35
35
  end
36
36
 
37
37
  def generate_destructive_changes
data/lib/dcgen/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dcgen
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: salesforce-dcgen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Breinlinger