Sha256: 3d7d9a63e27a12137b212d2a2512f64a46c89c4e8cd8941d506fa8908dcc613e

Contents?: true

Size: 338 Bytes

Versions: 22

Compression:

Stored size: 338 Bytes

Contents

module MetricFu
  module Formatter
    class YAML
      include MetricFu::Io

      DEFAULT_PATH = "report.yml"

      def initialize(opts={})
        @options = opts
        @path_or_io = @options[:output] || DEFAULT_PATH
      end

      def finish
        write_output(MetricFu.result.as_yaml, @path_or_io)
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
metric_fu-4.11.3 lib/metric_fu/formatter/yaml.rb
metric_fu-4.11.2 lib/metric_fu/formatter/yaml.rb
metric_fu-4.11.1 lib/metric_fu/formatter/yaml.rb
metric_fu-4.11.0 lib/metric_fu/formatter/yaml.rb
metric_fu-4.10.0 lib/metric_fu/formatter/yaml.rb
metric_fu-4.9.0 lib/metric_fu/formatter/yaml.rb
metric_fu-4.8.0 lib/metric_fu/formatter/yaml.rb
metric_fu-4.7.4 lib/metric_fu/formatter/yaml.rb
metric_fu-4.7.3 lib/metric_fu/formatter/yaml.rb
metric_fu-4.7.2 lib/metric_fu/formatter/yaml.rb
metric_fu-4.7.1 lib/metric_fu/formatter/yaml.rb
metric_fu-4.7.0 lib/metric_fu/formatter/yaml.rb
metric_fu-4.6.0 lib/metric_fu/formatter/yaml.rb
metric_fu-4.5.2 lib/metric_fu/formatter/yaml.rb
metric_fu-4.5.1 lib/metric_fu/formatter/yaml.rb
metric_fu-4.4.4 lib/metric_fu/formatter/yaml.rb
metric_fu-4.4.3 lib/metric_fu/formatter/yaml.rb
metric_fu-4.4.2 lib/metric_fu/formatter/yaml.rb
metric_fu-4.4.1 lib/metric_fu/formatter/yaml.rb
metric_fu-4.4.0 lib/metric_fu/formatter/yaml.rb