Skip to content

Instantly share code, notes, and snippets.

@raphink
Last active December 15, 2015 22:50
Show Gist options
  • Select an option

  • Save raphink/5336197 to your computer and use it in GitHub Desktop.

Select an option

Save raphink/5336197 to your computer and use it in GitHub Desktop.
module PuppetSpecReport
def status= (status)
@status = status
end
end
class Puppet::Transaction::Report::RestSpec < Puppet::Transaction::Report::Rest
def save(request)
# Extend report
request.instance.extend(PuppetSpecReport)
request.instance.status = 'failed'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment