Skip to content

Instantly share code, notes, and snippets.

@ekohl
Created June 26, 2019 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ekohl/a894d22ab64a333a53bd44e153bc723d to your computer and use it in GitHub Desktop.
Save ekohl/a894d22ab64a333a53bd44e153bc723d to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'librarian/puppet'
librarian_environment = Librarian::Puppet::Environment.new(pwd: 'Puppetfile.lock')
librarian_environment.lock.manifests.sort_by { |manifest| manifest.name.split('-').last }.each do |manifest|
puts "#{manifest.name.split('-').last} #{manifest.version}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment