Sha256: 5b1b8109ae397e1bd2fbc9f3b4aa6128a00bcc8de3c805b97d9eae1593e28f70
Contents?: true
Size: 1.03 KB
Versions: 4
Compression:
Stored size: 1.03 KB
Contents
A tiny ruby rack application which exposes the data from facter as JSON over HTTP. gem install web-facter Provides a simple command line tool which runs a built in web server. On accessing the specified port you should get a JSON response containing the current facts. web-facter --help Usage: web-facter [options] ... Configuration options: --no-daemonize Don't daemonize the web server process -p, --port PORT The port to run web-facter on -c, --config FILE The file to load with configuration options -h, --help Display this screenp You can configure web-facter using a configuration file, using the following format, and specifying the filename with the --config option above. username=gilbert password=george port=3009 daemonize=true Note that the port and daemonize options will override those on the command line. The username and password options enable HTTP basic authentication using those details.
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
web-facter-0.1.2 | README |
web-facter-0.1.1 | README |
web-facter-0.1.0 | README |
web-facter-0.0.3 | README |