Class: Packer::Output::MachineReadable

Inherits:
Base
  • Object
show all
Defined in:
lib/packer/output/machine_readable.rb

Overview

Represents commands that produce machine-readable output

Direct Known Subclasses

Build, Inspect, Version

Instance Method Summary collapse

Methods inherited from Base

#initialize, #stderr, #stdout

Constructor Details

This class inherits a constructor from Packer::Output::Base

Instance Method Details

#ui_messagesArray<Packer::Message::Ui>

Outputs that would have normally gone to the console if Packer were running in human-readable mode.

Returns:



9
10
11
# File 'lib/packer/output/machine_readable.rb', line 9

def ui_messages
  select_messages('ui').map { |fields| Packer::Message::Ui.from_fields(fields) }
end