Sha256: b058304232e268aa6e0d19d9e48050206916a9a4f5b6f991602cc0e0625eda5f
Contents?: true
Size: 1.09 KB
Versions: 1
Compression:
Stored size: 1.09 KB
Contents
# fluent-format [![Build Status](https://secure.travis-ci.org/sonots/fluent-format.png?branch=master)](http://travis-ci.org/sonots/fluent-format) A command line utility to format fluentd configuration beautifully ## Installation Add this line to your application's Gemfile: gem 'fluent-format' And then execute: $ bundle Or install it yourself as: $ gem install fluent-format ## Command Line Interface Format fluent.conf $ fluent-format -c fluent.conf Check fluent.conf $ fluent-format check -c fluent.conf -p plugin_dir $ echo $? # 0: success 1: failure ## As a library ```ruby require 'fluent-format' File.open(path) {|config| puts Fluent::Format.format(config) # formatted string Fluent::Format.check(config, plugin_dir) #=> Fluent::ConfigParseError or Fluent::ConfigError if failed } ``` ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request ## Licenses See [LICENSE](LICENSE)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fluent-format-0.2.2 | README.md |