Module: Format

Defined in:
lib/tasks/helpers/format.rb

Overview

This file is distributed under New Relic’s license terms. See github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details. frozen_string_literal: true

Instance Method Summary collapse

Instance Method Details

#output(format) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/tasks/helpers/format.rb', line 6

def output(format)
  config_hash = build_config_hash
  sections = flatten_config_hash(config_hash)

  puts build_erb(format).result(binding).split("\n").map(&:rstrip).join("\n").gsub('.  ', '. ')
  sections # silences unused warning to return this
end