lib/dcgen/plugins/group.rb in salesforce-dcgen-0.0.7 vs lib/dcgen/plugins/group.rb in salesforce-dcgen-0.0.9
- old
+ new
@@ -3,10 +3,17 @@
def self.group master , destination
master_groups = Dir.glob(master + '/groups/*group').map {|c| c.match(/^.*\/(.*).group$/)[1] }
destination_groups = Dir.glob(destination + '/groups/*group').map {|c| c.match(/^.*\/(.*).group$/)[1] }
- destination_groups - master_groups
+ remove_groups = destination_groups - master_groups
+
+ puts "Groups:" if not remove_groups.empty?
+ remove_groups.each do |group|
+ puts " #{group}"
+ end
+
+ remove_groups
end
end