Sha256: 9ce1c3a9be8893c4a4182627e7771042b20310f608032239b5c8e3cdf4c64ab5

Contents?: true

Size: 587 Bytes

Versions: 3

Compression:

Stored size: 587 Bytes

Contents

module Dcgen

  def self.customobject master , destination, output = true

    master_customobject = Dir.glob(master + '/objects/*object').map {|c| c.match(/^.*\/(.*).object$/)[1] }
    destination_customobject = Dir.glob(destination + '/objects/*object').map {|c| c.match(/^.*\/(.*).object$/)[1] }

    remove_customobject = destination_customobject - master_customobject

    if output
      puts "CustomObjects:" if not remove_customobject.empty?
      remove_customobject.each do |customobject|
        puts "  #{customobject}"
      end
    end

    remove_customobject

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

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