Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-1769

Ruby API for command execution with status code in result

    XMLWordPrintable

Details

    • New Feature
    • Status: Accepted
    • Normal
    • Resolution: Unresolved
    • None
    • None
    • None
    • Platform OS
    • Needs Assessment

    Description

      Facter::Util::Resolution.exec returns standard output and sets `$?` aka `$CHILD_STATUS`. These two globals are hard (impossible?) to stub in tests. A more testable API would be nice.

      Additionally, it would be nice if standard error was available in addition to standard output. The ability to specify the content of standard input might also be an idea.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jovrum Jakob
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Zendesk Support