summaryrefslogtreecommitdiff
path: root/lib/oxidized/output/output.rb
blob: 9fae7b02a61adfb4f5366faa263895e9545e8379 (plain)
1
2
3
4
5
6
7
8
9
module Oxidized
  class Output
    class NoConfig < OxidizedError; end

    def cfg_to_str cfg
      cfg.select { |h| h[:type] == 'cfg' }.map { |h| h[:data] }.join
    end
  end
end