class WavefrontOutput::Yaml

Display as YAML

Public Instance Methods

_run() click to toggle source

We don't want the YAML keys to be symbols, so we load it as JSON and turn that into YAML.

# File lib/wavefront-cli/output/yaml.rb, line 13
def _run
  JSON.parse(resp.to_json).to_yaml
end
allow_items_only?() click to toggle source
# File lib/wavefront-cli/output/yaml.rb, line 17
def allow_items_only?
  true
end