class Packer::Message::TemplateProvisioner

Message representing a provisioner defined within the template

@see www.packer.io/docs/machine-readable/command-inspect.html

Attributes

name[RW]

The name/type of the provisioner

Public Class Methods

from_fields(fields) click to toggle source

@api private @param [Array<String>] fields

# File lib/packer/message/template_provisioner.rb, line 12
def self.from_fields(fields)
  msg = new
  msg.timestamp = fields[0]
  msg.target = fields[1]
  msg.type = fields[2]
  msg.data = fields[3..-1]
  msg.name = fields[3]
  msg
end