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

Accept symbols as names of runtime implementation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 6.16.0
    • Component/s: None
    • Labels:
    • Template:
      PUP Bug Template
    • Epic Link:
    • Team:
      Coremunity
    • Sprint:
      Platform Core KANBAN
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Changes the `Puppet.runtime` method to take symbols instead of strings
    • QA Risk Assessment:
      Needs Assessment

      Description

      The Puppet.runtime[name] API should use symbols, e.g. :http, because it doesn't require the caller to allocate a string (puppet doesn't use the frozen string pragma yet).

      If a string is specified, we may want to covert to a symbol using String#to_sym, but we could also just not do that.

      Update API docs to use a symbol.

        Attachments

          Activity

            People

            Assignee:
            josh Josh Cooper
            Reporter:
            josh Josh Cooper
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support