Skip to content

Commit

Permalink
Merge pull request #884 from zilchms/unmsyncedmodules
Browse files Browse the repository at this point in the history
Add missing modules to output
  • Loading branch information
bastelfreak committed Mar 21, 2024
2 parents d3db60b + bf7fcfc commit 78b0559
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions bin/outdated_modules_and_their_version
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,18 @@ mod_ary = []
width_modules = 6
# min width is width of String "modulesync_config version"
width_version = 25
Dir.glob('modules/voxpupuli/puppet-*/.msync.yml').each do|f|
version_module = YAML.load_file(f)['modulesync_config_version']
mod = f.split('/')[2]
if version != version_module
Dir.glob('modules/voxpupuli/puppet-*').sort.each do |f|
if File.exists?(f + '/.msync.yml')
version_module = YAML.load_file(f + '/.msync.yml')['modulesync_config_version']
mod = (f).split('/')[2]
if version != version_module
mod_ary.push([mod, version_module])
width_modules = [width_modules, mod.length].max
width_version = [width_version, version_module.length].max
end
else
version_module = 'None'
mod = (f).split('/')[2]
mod_ary.push([mod, version_module])
width_modules = [width_modules, mod.length].max
width_version = [width_version, version_module.length].max
Expand Down

0 comments on commit 78b0559

Please sign in to comment.