Sha256: b5ce853d4dd84dab61216b0bb3c111af5d2cc35ba88e69c8d8f3a17ef4fb3772

Contents?: true

Size: 635 Bytes

Versions: 9

Compression:

Stored size: 635 Bytes

Contents

module Dcgen

  def self.approvalprocess master , destination

    master_approvalprocess = Dir.glob(master + '/approvalProcesses/*approvalProcess').map {|c| c.match(/^.*\/(.*).approvalProcess$/)[1] }
    destination_approvalprocess = Dir.glob(destination + '/approvalProcesses/*approvalProcess').map {|c| c.match(/^.*\/(.*).approvalProcess$/)[1] }

    remove_approvalprocess = destination_approvalprocess - master_approvalprocess

    puts "ApprovalProcesses:" if not remove_approvalprocess.empty?
    remove_approvalprocess.each do |approvalprocess|
      puts "  #{approvalprocess}"
    end

    remove_approvalprocess

  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

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