Sha256: f482cbfe368fc0a1442db5eee4d01f4fda7428ae2037ab9557046068a131e56d
Contents?: true
Size: 515 Bytes
Versions: 3
Compression:
Stored size: 515 Bytes
Contents
module Dcgen def self.layout master , destination, output = true 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 if output puts "Layouts:" if not remove_layout.empty? remove_layout.each do |layout| puts " #{layout}" end end remove_layout end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
salesforce-dcgen-0.8.0 | lib/dcgen/plugins/layout.rb |
salesforce-dcgen-0.7.0 | lib/dcgen/plugins/layout.rb |
salesforce-dcgen-0.6.0 | lib/dcgen/plugins/layout.rb |