Class: Packer::PostProcessor::DockerPush
- Inherits:
-
Packer::PostProcessor
- Object
- DataObject
- Packer::PostProcessor
- Packer::PostProcessor::DockerPush
- Defined in:
- lib/packer/postprocessors/docker.rb
Constant Summary
Constants inherited from Packer::PostProcessor
DOCKER_IMPORT, DOCKER_PUSH, DOCKER_SAVE, DOCKER_TAG, VAGRANT, VALID_POST_PROCESSOR_TYPES
Instance Attribute Summary
Attributes inherited from DataObject
#data, #key_dependencies, #required
Instance Method Summary collapse
-
#initialize ⇒ DockerPush
constructor
A new instance of DockerPush.
- #login(bool) ⇒ Object
- #login_email(email) ⇒ Object
- #login_password(password) ⇒ Object
- #login_server(server) ⇒ Object
- #login_username(username) ⇒ Object
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
#initialize ⇒ DockerPush
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 login(bool) self.__add_boolean('login', bool) end |
#login_email(email) ⇒ Object
33 34 35 |
# File 'lib/packer/postprocessors/docker.rb', line 33 def login_email(email) self.__add_string('login_email', email) end |
#login_password(password) ⇒ Object
41 42 43 |
# File 'lib/packer/postprocessors/docker.rb', line 41 def login_password(password) self.__add_string('login_password', password) end |
#login_server(server) ⇒ Object
45 46 47 |
# File 'lib/packer/postprocessors/docker.rb', line 45 def login_server(server) self.__add_string('login_server', server) end |
#login_username(username) ⇒ Object
37 38 39 |
# File 'lib/packer/postprocessors/docker.rb', line 37 def login_username(username) self.__add_string('login_username', username) end |