Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: BOLT 1.2.0
    • Component/s: None
    • Release Notes:
      New Feature
    • Release Notes Summary:
      This adds a ruby library to help task writers parse task input, catch errors, and produce task output. It's distributed as puppet module 'puppetlabs/ruby_task_helper'
    • QA Risk Assessment:
      Needs Assessment

      Description

      Create a core ruby library for tasks. Users who use the library should be able to write a single method that accepts parsed params and returns a dict. Targeting Ruby 2.3+.

      Interface:

      • User relative_requires base class file
      • Users extends class with a single method that performs the task. params input and output are dicts.
      • Users calls TaskClass.run()
      • Any unhandled errors are caught and turned into an error response
      • Base exception class to make generating a proper error easy
      • Example showing proper spec testing.

      Add notes about this module to Bolt docs and include in the Puppetfile.

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                lucy Lucy Wyman
                Reporter:
                alex Alex Dreyer
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: