facter

Inherit

This executable can inherit functions from another.
  1. CommentThe first .rb file in the /path/to/dir/ directory will be executed.
    This function can be performed by any unprivileged user.
    FACTERLIB=/path/to/dir/ facter
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    FACTERLIB=/path/to/dir/ facter
    Functions

    Inherits from ruby, thus possibly granting its functions.

  2. CommentThe first .rb file in the /path/to/dir/ directory will be executed.
    This function can be performed by any unprivileged user.
    facter --custom-dir=/path/to/dir/ x
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    facter --custom-dir=/path/to/dir/ x
    Functions

    Inherits from ruby, thus possibly granting its functions.