code: def __make_dynamic(self, method):
          '''
          Create a method for each of the exit codes.
          '''
          def dynamic(*args):
              self.plugin_info['status'] = method
              if not args:
                  args = None
              self.output(args)
              sys.exit(getattr(self.exit_code, method))
  
          method_lc = method.lower()
          dynamic.__doc__ = "%s method" % method_lc
          dynamic.__name__ = method_lc
          setattr(self, dynamic.__name__, dynamicf __make_dynamic(self, method):
          '''
          Create a method for each of the exit codes.
          '''
          def dynamic(*args):
              self.plugin_info['status'] = method
              if not args:
                  args = None
              self.output(args)
              sys.exit(getattr(self.exit_code, method))
  
          method_lc = method.lower()
          dynamic.__doc__ = "%s method" % method_lc
          dynamic.__name__ = method_lc
          setattr(self, dynamic.__name__, dynamic)
docs: Create a method for each of the exit codes.