class Packer::Output::Fix

Represents the output from +packer fix+.

@see www.packer.io/docs/command-line/fix.html

Public Instance Methods

json() click to toggle source

JSON representing the fixed template or nil if the fixing fails or the template is not valid.

@return [String]

# File lib/packer/output/fix.rb, line 11
def json
  return nil unless valid?

  stdout
end
valid?() click to toggle source

Returns true if the fixing was successful and the template is valid.

@return [Boolean]

# File lib/packer/output/fix.rb, line 20
def valid?
  @output.exitstatus.zero?
end