salesforce-dcgen 0.3.0 → 0.4.0
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 +4 -4
- data/README.md +12 -10
- data/lib/dcgen/plugins/customobject.rb +19 -0
- data/lib/dcgen/plugins/layout.rb +19 -0
- data/lib/dcgen/version.rb +1 -1
- data/tpl/destructiveChanges.xml.erb +16 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7098b5c371768f706b06d9f76f47c898c8929b54
|
4
|
+
data.tar.gz: b1e24a1c3beef8e7c1a4ab5053b895fc336791f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10307809af1f8af89ec4f818cf1ecac7b55b0a219167b2d56c9755210937197e068ff49a873318aa474d84d119e238a09a92114d9fa6b8630fbc04f2048fbe94
|
7
|
+
data.tar.gz: 501696c5a1d73bd75bbd56a5e529afa16e9a218d37d69ea1c3aed79af8e9c8df63c62cbfc4f6d0d42fe89be8f604b3df00fd144f5b6c7456b4890ec6e1143106
|
data/README.md
CHANGED
@@ -25,16 +25,18 @@ $ dcgen -m dir/to/scm/repo -d dir/to/sandbox/source/code
|
|
25
25
|
|
26
26
|
At the moment the following metadata is supported:
|
27
27
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
28
|
+
ApexClass
|
29
|
+
ApexPage
|
30
|
+
ApexTrigger
|
31
|
+
ApprovalProcess
|
32
|
+
CustomField
|
33
|
+
Group
|
34
|
+
PermissionSet
|
35
|
+
WorkflowRule
|
36
|
+
Labels
|
37
|
+
Workflow field update
|
38
|
+
Layouts
|
39
|
+
CustomObjects
|
38
40
|
|
39
41
|
More to come...
|
40
42
|
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Dcgen
|
2
|
+
|
3
|
+
def self.customobject master , destination
|
4
|
+
|
5
|
+
master_customobject = Dir.glob(master + '/objects/*object').map {|c| c.match(/^.*\/(.*).object$/)[1] }
|
6
|
+
destination_customobject = Dir.glob(destination + '/objects/*object').map {|c| c.match(/^.*\/(.*).object$/)[1] }
|
7
|
+
|
8
|
+
remove_customobject = destination_customobject - master_customobject
|
9
|
+
|
10
|
+
puts "CustomObjects:" if not remove_customobject.empty?
|
11
|
+
remove_customobject.each do |customobject|
|
12
|
+
puts " #{customobject}"
|
13
|
+
end
|
14
|
+
|
15
|
+
remove_customobject
|
16
|
+
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Dcgen
|
2
|
+
|
3
|
+
def self.layout master , destination
|
4
|
+
|
5
|
+
master_layout = Dir.glob(master + '/layouts/*layout').map {|c| c.match(/^.*\/(.*).layout$/)[1] }
|
6
|
+
destination_layout = Dir.glob(destination + '/layouts/*layout').map {|c| c.match(/^.*\/(.*).layout$/)[1] }
|
7
|
+
|
8
|
+
remove_layout = destination_layout - master_layout
|
9
|
+
|
10
|
+
puts "Layouts:" if not remove_layout.empty?
|
11
|
+
remove_layout.each do |layout|
|
12
|
+
puts " #{layout}"
|
13
|
+
end
|
14
|
+
|
15
|
+
remove_layout
|
16
|
+
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
data/lib/dcgen/version.rb
CHANGED
@@ -80,4 +80,20 @@
|
|
80
80
|
<name>WorkflowFieldUpdate</name>
|
81
81
|
</types>
|
82
82
|
<% end %>
|
83
|
+
<% if not @metadata[:layout].empty? %>
|
84
|
+
<types>
|
85
|
+
<% for @layout in @metadata[:layout] %>
|
86
|
+
<members><%= @layout %></members>
|
87
|
+
<% end %>
|
88
|
+
<name>Layout</name>
|
89
|
+
</types>
|
90
|
+
<% end %>
|
91
|
+
<% if not @metadata[:customobject].empty? %>
|
92
|
+
<types>
|
93
|
+
<% for @customobject in @metadata[:customobject] %>
|
94
|
+
<members><%= @customobject %></members>
|
95
|
+
<% end %>
|
96
|
+
<name>CustomObject</name>
|
97
|
+
</types>
|
98
|
+
<% end %>
|
83
99
|
</Package>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: salesforce-dcgen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
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-12-
|
11
|
+
date: 2014-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -73,8 +73,10 @@ files:
|
|
73
73
|
- lib/dcgen/plugins/apextrigger.rb
|
74
74
|
- lib/dcgen/plugins/approvalprocess.rb
|
75
75
|
- lib/dcgen/plugins/customfield.rb
|
76
|
+
- lib/dcgen/plugins/customobject.rb
|
76
77
|
- lib/dcgen/plugins/group.rb
|
77
78
|
- lib/dcgen/plugins/label.rb
|
79
|
+
- lib/dcgen/plugins/layout.rb
|
78
80
|
- lib/dcgen/plugins/permissionset.rb
|
79
81
|
- lib/dcgen/plugins/workflowfieldupdate.rb
|
80
82
|
- lib/dcgen/plugins/workflowrule.rb
|