Class: Packer::Message::ArtifactFile
- Defined in:
- lib/packer/message/artifact_file.rb
Overview
Message representing a file associated with an artifact
Instance Attribute Summary collapse
-
#file_index ⇒ Object
The zero-based index of the file.
-
#filename ⇒ Object
The filename.
Attributes inherited from Base
#data, #target, #timestamp, #type
Class Method Summary collapse
- .from_fields(fields) ⇒ Object private
Instance Attribute Details
#file_index ⇒ Object
The zero-based index of the file
6 7 8 |
# File 'lib/packer/message/artifact_file.rb', line 6 def file_index @file_index end |
#filename ⇒ Object
The filename
9 10 11 |
# File 'lib/packer/message/artifact_file.rb', line 9 def filename @filename 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.
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/packer/message/artifact_file.rb', line 13 def self.from_fields(fields) msg = new msg. = fields[0] msg.target = fields[1] msg.type = fields[2] msg.data = fields[3..-1] msg.file_index = fields[5] msg.filename = fields[6] msg end |