Class: Packer::PostProcessor::Manifest

Inherits:
Packer::PostProcessor show all
Defined in:
lib/packer/postprocessors/manifest.rb

Constant Summary

Constants inherited from Packer::PostProcessor

COMPRESS, DOCKER_IMPORT, DOCKER_PUSH, DOCKER_SAVE, DOCKER_TAG, MANIFEST, SHELL_LOCAL, VAGRANT, VALID_POST_PROCESSOR_TYPES

Instance Attribute Summary

Attributes inherited from DataObject

#data, #key_dependencies, #required

Instance Method Summary collapse

Methods inherited from Packer::PostProcessor

#except, get_postprocessor, #keep_input_artifact, #only, types

Methods inherited from DataObject

#__add_array_of_array_of_strings, #__add_array_of_hashes, #__add_array_of_ints, #__add_array_of_strings, #__add_boolean, #__add_hash, #__add_integer, #__add_json, #__add_string, #__exclusive_key_error, #add_key_dependencies, #add_required, #deep_copy, #validate, #validate_key_dependencies, #validate_required

Constructor Details

#initializeManifest

Returns a new instance of Manifest.



8
9
10
11
# File 'lib/packer/postprocessors/manifest.rb', line 8

def initialize
  super
  self.data['type'] = MANIFEST
end

Instance Method Details

#custom_data(data) ⇒ Object



21
22
23
# File 'lib/packer/postprocessors/manifest.rb', line 21

def custom_data(data)
  self.__add_hash('custom_data', data)
end

#output(file) ⇒ Object



13
14
15
# File 'lib/packer/postprocessors/manifest.rb', line 13

def output(file)
  self.__add_string('output', file)
end

#strip_path(bool) ⇒ Object



17
18
19
# File 'lib/packer/postprocessors/manifest.rb', line 17

def strip_path(bool)
  self.__add_boolean('strip_path', bool)
end