Class: Buildizer::Target::Patch
- Defined in:
- lib/buildizer/target/patch.rb
Instance Attribute Summary collapse
-
#patch ⇒ Object
readonly
Returns the value of attribute patch.
-
#patch_version ⇒ Object
readonly
Returns the value of attribute patch_version.
Attributes inherited from Base
#before_build, #build_dep, #builder, #image, #maintainer, #name, #package_cloud, #package_name, #package_version, #prepare
Instance Method Summary collapse
- #container_package_name ⇒ Object
- #image_work_path ⇒ Object
-
#initialize(builder, image, patch: [], patch_version: nil, **kwargs, &blk) ⇒ Patch
constructor
A new instance of Patch.
- #package_version_tag_param_name ⇒ Object
Methods inherited from Base
#_package_cloud_path, #base_package_name, #container_package_archive_name, #container_package_archive_path, #container_package_path, #docker_cache_image, #docker_image, #docker_image_repository, #docker_image_tag, #image_build_path, #image_extra_path, #maintainer_email, #package_version_tag
Constructor Details
#initialize(builder, image, patch: [], patch_version: nil, **kwargs, &blk) ⇒ Patch
Returns a new instance of Patch.
7 8 9 10 11 12 13 14 |
# File 'lib/buildizer/target/patch.rb', line 7 def initialize(builder, image, patch: [], patch_version: nil, **kwargs, &blk) super(builder, image, **kwargs) do @patch = patch @patch_version = patch_version yield if block_given? end end |
Instance Attribute Details
#patch ⇒ Object (readonly)
Returns the value of attribute patch.
4 5 6 |
# File 'lib/buildizer/target/patch.rb', line 4 def patch @patch end |
#patch_version ⇒ Object (readonly)
Returns the value of attribute patch_version.
5 6 7 |
# File 'lib/buildizer/target/patch.rb', line 5 def patch_version @patch_version end |
Instance Method Details
#container_package_name ⇒ Object
24 25 26 |
# File 'lib/buildizer/target/patch.rb', line 24 def container_package_name "#{package_name}-#{patch_version}" end |
#image_work_path ⇒ Object
20 21 22 |
# File 'lib/buildizer/target/patch.rb', line 20 def image_work_path builder.work_path.join('patch').join(package_name).join(patch_version).join(name) end |
#package_version_tag_param_name ⇒ Object
28 29 30 |
# File 'lib/buildizer/target/patch.rb', line 28 def package_version_tag_param_name :patch_version end |