Class: Packer::PostProcessor::DockerPush

Inherits:
Packer::PostProcessor show all
Defined in:
lib/packer/postprocessors/docker.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

#initializeDockerPush

Returns a new instance of DockerPush.



24
25
26
27
# File 'lib/packer/postprocessors/docker.rb', line 24

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

Instance Method Details

#login(bool) ⇒ Object



29
30
31
# File 'lib/packer/postprocessors/docker.rb', line 29

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

#login_email(email) ⇒ Object



33
34
35
# File 'lib/packer/postprocessors/docker.rb', line 33

def (email)
  self.__add_string('login_email', email)
end

#login_password(password) ⇒ Object



41
42
43
# File 'lib/packer/postprocessors/docker.rb', line 41

def (password)
  self.__add_string('login_password', password)
end

#login_server(server) ⇒ Object



45
46
47
# File 'lib/packer/postprocessors/docker.rb', line 45

def (server)
  self.__add_string('login_server', server)
end

#login_username(username) ⇒ Object



37
38
39
# File 'lib/packer/postprocessors/docker.rb', line 37

def (username)
  self.__add_string('login_username', username)
end