Class: Packer::Message::TemplateProvisioner

Inherits:
Base
  • Object
show all
Defined in:
lib/packer/message/template_provisioner.rb

Overview

Message representing a provisioner defined within the template

Instance Attribute Summary collapse

Attributes inherited from Base

#data, #target, #timestamp, #type

Class Method Summary collapse

Instance Attribute Details

#nameObject

The name/type of the provisioner



8
9
10
# File 'lib/packer/message/template_provisioner.rb', line 8

def name
  @name
end

Class Method Details

.from_fields(fields) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:

  • fields (Array<String>)


12
13
14
15
16
17
18
19
20
# 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