Sha256: 2ac52de4ce6d33aa4817ecc5c7a5105bb2cde9690fdcf7be1123ea5f0467aaf7

Contents?: true

Size: 593 Bytes

Versions: 2

Compression:

Stored size: 593 Bytes

Contents

module Dcgen

  def self.apexcomponent master , destination, output = true

    master_components = Dir.glob(master + '/components/*component').map {|c| c.match(/^.*\/(.*).component$/)[1] }
    destination_components = Dir.glob(destination + '/components/*component').map {|c| c.match(/^.*\/(.*).component$/)[1] }

    remove_components = destination_components - master_components

    if output
      puts "ApexComponents:" if not remove_components.empty?
      remove_components.each do |apexcomponent|
        puts "  #{apexcomponent}"
      end
    end

    remove_components

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

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