Sha256: 59b37b28b5a1ee69644eebe37dceee5aca5eef026e8c605d7547f8a8286d4ea2

Contents?: true

Size: 505 Bytes

Versions: 3

Compression:

Stored size: 505 Bytes

Contents

module Dcgen

  def self.apexpage master , destination, output = true

    master_pages = Dir.glob(master + '/pages/*page').map {|c| c.match(/^.*\/(.*).page$/)[1] }
    destination_pages = Dir.glob(destination + '/pages/*page').map {|c| c.match(/^.*\/(.*).page$/)[1] }

    remove_pages = destination_pages - master_pages

    if output
      puts "ApexPages:" if not remove_pages.empty?
      remove_pages.each do |aplexpage|
        puts "  #{aplexpage}"
      end
    end

    remove_pages

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

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