Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-6225

Add 'new' function to the Puppet Object type

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • PUP 4.5.0
    • None
    • None
    • Hide

      It should be possible to define and create basic Object Type definitions. The acceptance criteria are covered by unit tests. The now added logic is the foundation for additional work that builds out the complete set of features for the Object Type and Pcore.

      Show
      It should be possible to define and create basic Object Type definitions. The acceptance criteria are covered by unit tests. The now added logic is the foundation for additional work that builds out the complete set of features for the Object Type and Pcore.
    • 2
    • Language 2016-05-04, Language 2016-05-18
    • Not Needed
    • Part of the larger feature Pcore.

    Description

      It should be possible to create new instances of an Object type provided that the type has been bound to an implementation. In order to do this, a PObjectType#new_function must be added that looks for a mapping, and if it exists, creates a new instance of the appointed object.

      A mapped implementation must implement a special marker interface (a ruby module) to prevent that arbitrary classes can be mapped.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              thomas.hallgren Thomas Hallgren
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support