Sha256: 2988cbd083ff074e7d894e4957ba3283e4f5a247c33099b333d8ebabbd47d95b
Contents?: true
Size: 811 Bytes
Versions: 10
Compression:
Stored size: 811 Bytes
Contents
#!/usr/bin/env ruby require 'nokogiri' stepmod_dir = ARGV.first || Dir.pwd index = Nokogiri::XML(File.read(File.join(stepmod_dir, 'repository_index.xml'))).root files = [] index.xpath('modules/module').each do |item| files << "#{stepmod_dir}/data/modules/#{item['name']}/arm.exp" files << "#{stepmod_dir}/data/modules/#{item['name']}/mim.exp" end index.xpath('resources/resource').each do |item| files << "#{stepmod_dir}/data/resources/#{item['name']}/#{item['name']}.exp" end index.xpath('business_object_models/business_object_model').each do |item| files << "#{stepmod_dir}/data/business_object_models/#{item['name']}/bom.exp" files << "#{stepmod_dir}/data/business_object_models/#{item['name']}/DomainModel.exp" end existing_files = files.filter{|file| File.exists?(file)} puts existing_files
Version data entries
10 entries across 10 versions & 1 rubygems