Class: CommandExec::Formatter::YAML
- Defined in:
- lib/command_exec/formatter/yaml.rb
Overview
Style as yaml string
Instance Attribute Summary
Attributes inherited from Hash
Instance Method Summary collapse
-
#output(*fields) ⇒ String
convert the prepared output to a yaml string.
Methods inherited from Hash
Methods included from CommandExec::FieldHelper
#end_time, #executable, #initialize, #log_file, #pid, #reason_for_failure, #return_code, #start_time, #stderr, #stdout
Constructor Details
This class inherits a constructor from CommandExec::Formatter::Hash
Instance Method Details
#output(*fields) ⇒ String
convert the prepared output to a yaml string
17 18 19 |
# File 'lib/command_exec/formatter/yaml.rb', line 17 def output(*fields) Psych.dump prepare_output(fields.flatten) end |