lib/dcgen/plugins/apexclass.rb in salesforce-dcgen-0.5.0 vs lib/dcgen/plugins/apexclass.rb in salesforce-dcgen-0.6.0

- old
+ new

@@ -1,16 +1,18 @@ module Dcgen - def self.apexclass master , destination + def self.apexclass master , destination, output = true master_classes = Dir.glob(master + '/classes/*cls').map {|c| c.match(/^.*\/(.*).cls$/)[1] } destination_classes = Dir.glob(destination + '/classes/*cls').map {|c| c.match(/^.*\/(.*).cls$/)[1] } remove_classes = destination_classes - master_classes - puts "ApexClasses:" if not remove_classes.empty? - remove_classes.each do |apexclass| - puts " #{apexclass}" + if output + puts "ApexClasses:" if not remove_classes.empty? + remove_classes.each do |apexclass| + puts " #{apexclass}" + end end remove_classes end