Sha256: d5bff8cde1b350fbe4c3910f0b62b425d8d7887f23e6f32e423df7e443cea79e

Contents?: true

Size: 596 Bytes

Versions: 9

Compression:

Stored size: 596 Bytes

Contents

module Dcgen

  def self.permissionset master , destination

    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

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

    remove_permissionset

  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

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