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 +4 -4
- data/bin/dcgen +15 -5
- data/lib/dcgen/app.rb +2 -2
- data/lib/dcgen/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: d5c2be25b5d3d098de066b63f1cc7bbf95aba2b0
|
4
|
+
data.tar.gz: 7c082a164ef052713b2d5ca8ebaab9863f4d5566
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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