A wrapper to use puppet-strings module outside of the puppet itself. traveling-ruby is used to deploy the wrapper in totally independed directory.
./setup-osx.sh <path where to deploy the wrapper>
After setup, the wrapper would be able to generate json documents.
This puppet's method:
puppet strings generate '*/manifests/**/*.pp' '*/functions/**/*.pp' --emit-json out.json
Can now be called in that way:
./<path>/puppet-strings '["*/manifests/**/*.pp", "*/functions/**/*.pp"]' out.json