Sha256: 6c6b8723dab9f6541dfd42b7dc8dc35ee9132b5f848e75a1b5e695508b03cc24

Contents?: true

Size: 421 Bytes

Versions: 94

Compression:

Stored size: 421 Bytes

Contents

# encoding: utf-8

require 'yaml'

module Inspec::Reporters
  class Yaml < Base
    def render
      output(Inspec::Reporters::Json.new({ run_data: run_data }).report.to_yaml, false)
    end

    def report
      {
        platform: platform,
        profiles: profiles,
        statistics: {
          duration: run_data[:statistics][:duration],
        },
        version: run_data[:version],
      }
    end
  end
end

Version data entries

94 entries across 94 versions & 2 rubygems

Version Path
inspec-core-3.0.25 lib/inspec/reporters/yaml.rb
inspec-3.0.25 lib/inspec/reporters/yaml.rb
inspec-core-3.0.12 lib/inspec/reporters/yaml.rb
inspec-3.0.12 lib/inspec/reporters/yaml.rb
inspec-core-3.0.9 lib/inspec/reporters/yaml.rb
inspec-3.0.9 lib/inspec/reporters/yaml.rb
inspec-core-3.0.0 lib/inspec/reporters/yaml.rb
inspec-3.0.0 lib/inspec/reporters/yaml.rb
inspec-core-2.3.24 lib/inspec/reporters/yaml.rb
inspec-2.3.24 lib/inspec/reporters/yaml.rb
inspec-core-2.3.23 lib/inspec/reporters/yaml.rb
inspec-2.3.23 lib/inspec/reporters/yaml.rb
inspec-core-2.3.10 lib/inspec/reporters/yaml.rb
inspec-2.3.10 lib/inspec/reporters/yaml.rb
inspec-core-2.3.5 lib/inspec/reporters/yaml.rb
inspec-2.3.5 lib/inspec/reporters/yaml.rb
inspec-core-2.3.4 lib/inspec/reporters/yaml.rb
inspec-2.3.4 lib/inspec/reporters/yaml.rb
inspec-core-2.2.112 lib/inspec/reporters/yaml.rb
inspec-2.2.112 lib/inspec/reporters/yaml.rb