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

Version Path
stepmod-utils-0.3.5 exe/stepmod-find-express-files
stepmod-utils-0.3.4 exe/stepmod-find-express-files
stepmod-utils-0.3.2 exe/stepmod-find-express-files
stepmod-utils-0.3.1 exe/stepmod-find-express-files
stepmod-utils-0.3.0 exe/stepmod-find-express-files
stepmod-utils-0.2.7 exe/stepmod-find-express-files
stepmod-utils-0.2.6 exe/stepmod-find-express-files
stepmod-utils-0.2.5 exe/stepmod-find-express-files
stepmod-utils-0.2.4 exe/stepmod-find-express-files
stepmod-utils-0.2.3 exe/stepmod-find-express-files