Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. require 'puppet'
  2.  
  3. module Puppet::Pops
  4. module Types
  5. pcore_types = TypedModelObject.register_ptypes(Loader::StaticLoader.new, ImplementationRegistry.singleton)
  6. pcore_typeset = PTypeSetType.new(
  7. {
  8. Pcore::KEY_PCORE_VERSION => Pcore::PCORE_VERSION,
  9. KEY_NAME => 'Pcore',
  10. KEY_TYPES => Hash[pcore_types.map { |t| [t.name.start_with?('Pcore::') ? t.name[7..-1] : t.name, t] }]
  11. }
  12. )
  13. puts TypeFormatter.singleton.expanded.indented.string(pcore_typeset)
  14. end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement