Sha256: 7537f9af9fc0c88ea6703b174b26478429b3f308adb09ac0af5cfcfbf48dcf0d

Contents?: true

Size: 857 Bytes

Versions: 18

Compression:

Stored size: 857 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

18 entries across 18 versions & 1 rubygems

Version Path
stepmod-utils-0.3.24 exe/stepmod-find-express-files
stepmod-utils-0.3.23 exe/stepmod-find-express-files
stepmod-utils-0.3.22 exe/stepmod-find-express-files
stepmod-utils-0.3.21 exe/stepmod-find-express-files
stepmod-utils-0.3.20 exe/stepmod-find-express-files
stepmod-utils-0.3.19 exe/stepmod-find-express-files
stepmod-utils-0.3.18 exe/stepmod-find-express-files
stepmod-utils-0.3.17 exe/stepmod-find-express-files
stepmod-utils-0.3.16 exe/stepmod-find-express-files
stepmod-utils-0.3.15 exe/stepmod-find-express-files
stepmod-utils-0.3.14 exe/stepmod-find-express-files
stepmod-utils-0.3.13 exe/stepmod-find-express-files
stepmod-utils-0.3.12 exe/stepmod-find-express-files
stepmod-utils-0.3.11 exe/stepmod-find-express-files
stepmod-utils-0.3.10 exe/stepmod-find-express-files
stepmod-utils-0.3.9 exe/stepmod-find-express-files
stepmod-utils-0.3.8 exe/stepmod-find-express-files
stepmod-utils-0.3.7 exe/stepmod-find-express-files