Sha256: e08d697107a99fd9cd2493d571f5767b2b0b2e8c3aed11b170f0f792efcab86d
Contents?: true
Size: 460 Bytes
Versions: 9
Compression:
Stored size: 460 Bytes
Contents
module Dcgen def self.group master , destination master_groups = Dir.glob(master + '/groups/*group').map {|c| c.match(/^.*\/(.*).group$/)[1] } destination_groups = Dir.glob(destination + '/groups/*group').map {|c| c.match(/^.*\/(.*).group$/)[1] } remove_groups = destination_groups - master_groups puts "Groups:" if not remove_groups.empty? remove_groups.each do |group| puts " #{group}" end remove_groups end end
Version data entries
9 entries across 9 versions & 1 rubygems