If trusted_external_command points to a directory, then for each file in the directory,
If the file's executable, we can assume it's a trusted external command. That means we'll execute it, fetch its data, and store it in trusted['external'][<basename>].
The {{ `trusted_external_command}}` setting can now be set to a directory. If it's set to a directory, then for each executable file in the directory, the external trusted facts will be stored in the {{<basename>}} key of the {{trusted['external']}} hash. For example, if the files foo.rb and bar.sh are in the directory, then {{trusted['external']}} will be the hash {{{ 'foo' => <foo.rb output>, 'bar' => <bar.sh output> }}}.
The {{trusted_external_command}} setting can now be set to a directory. If it's set to a directory, then for each executable file in the directory, the external trusted facts will be stored in the {{<basename>}} key of the {{trusted['external']}} hash. For example, if the files foo.rb and bar.sh are in the directory, then {{trusted['external']}} will be the hash {{{ 'foo' => <foo.rb output>, 'bar' => <bar.sh output> }}}.
The `trusted_external_command` setting can now be set to a directory. If it's set to a directory, then for each executable file in the directory, the external trusted facts will be stored in the {{<basename>}} key of the {{trusted['external']}} hash. For example, if the files foo.rb and bar.sh are in the directory, then {{trusted['external']}} will be the hash {{{ 'foo' => <foo.rb output>, 'bar' => <bar.sh output> }}}.