Sha256: e24caec5bb93b9bb0ea2a5697ee3d91dafe9abdf58b88cb0a915af14484dbccb

Contents?: true

Size: 641 Bytes

Versions: 3

Compression:

Stored size: 641 Bytes

Contents

module Dcgen

  def self.permissionset master , destination, output = true

    master_permissionset = Dir.glob(master + '/permissionsets/*permissionset').map {|c| c.match(/^.*\/(.*).permissionset$/)[1] }
    destination_permissionset = Dir.glob(destination + '/permissionsets/*permissionset').map {|c| c.match(/^.*\/(.*).permissionset$/)[1] }

    remove_permissionset = destination_permissionset - master_permissionset

    if output
      puts "PermissionSets:" if not remove_permissionset.empty?
      remove_permissionset.each do |permissionset|
        puts "  #{permissionset}"
      end
    end

    remove_permissionset

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
salesforce-dcgen-0.8.0 lib/dcgen/plugins/permissionset.rb
salesforce-dcgen-0.7.0 lib/dcgen/plugins/permissionset.rb
salesforce-dcgen-0.6.0 lib/dcgen/plugins/permissionset.rb