Sha256: 15b83ec5fd764c472b3423df17ee36b856223c7eef614c858df226e5d9e9b44f

Contents?: true

Size: 470 Bytes

Versions: 2

Compression:

Stored size: 470 Bytes

Contents

module Dcgen

  def self.layout master , destination

    master_layout = Dir.glob(master + '/layouts/*layout').map {|c| c.match(/^.*\/(.*).layout$/)[1] }
    destination_layout = Dir.glob(destination + '/layouts/*layout').map {|c| c.match(/^.*\/(.*).layout$/)[1] }

    remove_layout = destination_layout - master_layout

    puts "Layouts:" if not remove_layout.empty?
    remove_layout.each do |layout|
      puts "  #{layout}"
    end

    remove_layout

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
salesforce-dcgen-0.5.0 lib/dcgen/plugins/layout.rb
salesforce-dcgen-0.4.0 lib/dcgen/plugins/layout.rb