summaryrefslogtreecommitdiffstats
path: root/lib/puppet/indirector/report/yaml.rb
blob: bf7bf4fe57bf700773b7a63176fc438bdeb5509e (plain)
1
2
3
4
5
6
7
8
9
10
11
require 'puppet/transaction/report'
require 'puppet/indirector/yaml'

class Puppet::Transaction::Report::Yaml < Puppet::Indirector::Yaml
  desc "Store last report as a flat file, serialized using YAML."

  # Force report to be saved there
  def path(name,ext='.yaml')
    Puppet[:lastrunreport]
  end
end