Skip to content

Commit

Permalink
type and style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zilchms committed Jan 16, 2024
1 parent e43f57a commit 23f6ec8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/outdated_modules_and_their_version
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ require 'erb'
version = YAML.load(ERB.new(File.read('moduleroot/.msync.yml.erb')).result)['modulesync_config_version']

mod_ary = []
# min width is with of String "Module"
# min width is width of String "Module"
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
mod_ary.push([mod,version_module])
mod_ary.push([mod, version_module])
width_modules = [width_modules, mod.length].max
width_version = [width_version, version_module.length].max
end
Expand Down

0 comments on commit 23f6ec8

Please sign in to comment.