summaryrefslogtreecommitdiff
path: root/lib/oxidized/output/output.rb
blob: 1355d03aaf46ba2a1b62b6d78d1c4d20f6f5662e (plain)
1
2
3
4
5
6
7
8
9
10
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