Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'puppet'
- module Puppet::Pops
- module Types
- pcore_types = TypedModelObject.register_ptypes(Loader::StaticLoader.new, ImplementationRegistry.singleton)
- pcore_typeset = PTypeSetType.new(
- {
- Pcore::KEY_PCORE_VERSION => Pcore::PCORE_VERSION,
- KEY_NAME => 'Pcore',
- KEY_TYPES => Hash[pcore_types.map { |t| [t.name.start_with?('Pcore::') ? t.name[7..-1] : t.name, t] }]
- }
- )
- puts TypeFormatter.singleton.expanded.indented.string(pcore_typeset)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement