Class: Dapp::Dimg::Build::Stage::BuildArtifact
- Defined in:
- lib/dapp/dimg/build/stage/build_artifact.rb
Instance Attribute Summary
Attributes inherited from Base
#dimg, #next_stage, #prev_stage
Instance Method Summary collapse
- #builder_checksum ⇒ Object
- #context ⇒ Object
- #empty? ⇒ Boolean
-
#initialize(dimg) ⇒ BuildArtifact
constructor
A new instance of BuildArtifact.
- #prepare_image ⇒ Object
Methods inherited from Base
#adding_mounts_by_type, #artifact?, #build!, #build_lock!, #config_mounts_by_type, #dependencies, #dependencies_empty?, #git_artifacts_dependencies, #image, #image_add_mounts, #image_should_be_build?, #labels_mounts_by_type, #name, #save_in_cache!, #signature
Methods included from Mod::Logging
#ignore_log_commands?, #log_build, #log_image_build, #log_image_build_process, #log_image_commands, #log_image_created_at, #log_image_details, #log_image_instructions, #log_image_size, #log_name, #log_name_context, #log_state, #should_be_introspected?, #should_be_quiet?, #should_not_be_detailed?
Methods included from Helper::Trivia
class_to_lowercase, #class_to_lowercase, #delete_file, #kwargs, #search_file_upward
Methods included from Helper::Sha256
#hashsum, #paths_content_hashsum, #sha256
Constructor Details
#initialize(dimg) ⇒ BuildArtifact
Returns a new instance of BuildArtifact.
6 7 8 9 |
# File 'lib/dapp/dimg/build/stage/build_artifact.rb', line 6 def initialize(dimg) @prev_stage = GAArtifactPatch.new(dimg, self) @dimg = dimg end |
Instance Method Details
#builder_checksum ⇒ Object
19 20 21 |
# File 'lib/dapp/dimg/build/stage/build_artifact.rb', line 19 def builder_checksum dimg.builder.build_artifact_checksum end |
#context ⇒ Object
15 16 17 |
# File 'lib/dapp/dimg/build/stage/build_artifact.rb', line 15 def context [git_artifacts_dependencies, builder_checksum] end |
#empty? ⇒ Boolean
11 12 13 |
# File 'lib/dapp/dimg/build/stage/build_artifact.rb', line 11 def empty? !dimg.builder.build_artifact? end |
#prepare_image ⇒ Object
23 24 25 26 |
# File 'lib/dapp/dimg/build/stage/build_artifact.rb', line 23 def prepare_image super dimg.builder.build_artifact(image) end |