Class: Fluent::Format
- Inherits:
-
Object
- Object
- Fluent::Format
- Defined in:
- lib/fluent/format.rb,
lib/fluent/format/cli.rb,
lib/fluent/format/version.rb
Defined Under Namespace
Classes: CLI
Constant Summary collapse
- VERSION =
"0.1.1"
Class Method Summary collapse
Class Method Details
.format_config(dev) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/fluent/format.rb', line 6 def format_config(dev) config = if dev.respond_to?(:read) # IO object parse_config(dev, '-', '-') else read_config(dev) end indent_config(config) end |