Sha256: e08d697107a99fd9cd2493d571f5767b2b0b2e8c3aed11b170f0f792efcab86d

Contents?: true

Size: 460 Bytes

Versions: 9

Compression:

Stored size: 460 Bytes

Contents

module Dcgen

  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] }

    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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
salesforce-dcgen-0.5.0 lib/dcgen/plugins/group.rb
salesforce-dcgen-0.4.0 lib/dcgen/plugins/group.rb
salesforce-dcgen-0.3.0 lib/dcgen/plugins/group.rb
salesforce-dcgen-0.2.0 lib/dcgen/plugins/group.rb
salesforce-dcgen-0.1.0 lib/dcgen/plugins/group.rb
salesforce-dcgen-0.0.12 lib/dcgen/plugins/group.rb
salesforce-dcgen-0.0.11 lib/dcgen/plugins/group.rb
salesforce-dcgen-0.0.10 lib/dcgen/plugins/group.rb
salesforce-dcgen-0.0.9 lib/dcgen/plugins/group.rb