Class: Dapp::Dimg::Build::Stage::GALatestPatch
- Defined in:
- lib/dapp/dimg/build/stage/ga_latest_patch.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Base
#dimg, #next_stage, #prev_stage
Instance Method Summary collapse
- #dependencies ⇒ Object
- #empty? ⇒ Boolean
-
#initialize(dimg, next_stage) ⇒ GALatestPatch
constructor
A new instance of GALatestPatch.
- #layer_commit(git_artifact) ⇒ Object
- #renew ⇒ Object
Methods inherited from GABase
Methods inherited from Base
#adding_custom_dir_mounts, #adding_mounts_by_type, #artifact?, #build!, #build_lock!, #builder_checksum, #config_custom_dir_mounts, #config_mounts_by_type, #dependencies_discard, #dependencies_empty?, #g_a_stage?, #git_artifacts_dependencies, #image, #image_add_custom_mounts, #image_add_mounts, #image_introspect, #labels_custom_dir_mounts, #labels_mounts_by_type, #name, #prepare_image, #save_in_cache!, #signature
Methods included from Mod::Logging
#ignore_log_commands?, #image_should_be_introspected?, #log_build, #log_image_build, #log_image_commands, #log_image_created_at, #log_image_details, #log_image_instructions, #log_image_size, #log_name, #log_name_context, #log_state, #should_not_be_detailed?
Methods included from Helper::Trivia
#check_path?, #check_subpath?, #class_to_lowercase, class_to_lowercase, #delete_file, #ignore_path?, #ignore_path_base, #kwargs, #make_path, #path_checker, #search_file_upward
Methods included from Helper::Sha256
#hashsum, #paths_content_hashsum, #sha256
Constructor Details
#initialize(dimg, next_stage) ⇒ GALatestPatch
Returns a new instance of GALatestPatch.
6 7 8 9 |
# File 'lib/dapp/dimg/build/stage/ga_latest_patch.rb', line 6 def initialize(dimg, next_stage) @prev_stage = AfterSetupArtifact.new(dimg, self) super end |
Instance Method Details
#dependencies ⇒ Object
16 17 18 |
# File 'lib/dapp/dimg/build/stage/ga_latest_patch.rb', line 16 def dependencies @dependencies ||= [commit_list, git_artifacts_dev_patch_hashes] end |
#empty? ⇒ Boolean
20 21 22 |
# File 'lib/dapp/dimg/build/stage/ga_latest_patch.rb', line 20 def empty? dimg.git_artifacts.empty? || dependencies_empty? end |
#layer_commit(git_artifact) ⇒ Object
24 25 26 |
# File 'lib/dapp/dimg/build/stage/ga_latest_patch.rb', line 24 def layer_commit(git_artifact) commits[git_artifact] ||= git_artifact.latest_commit end |
#renew ⇒ Object
11 12 13 14 |
# File 'lib/dapp/dimg/build/stage/ga_latest_patch.rb', line 11 def renew dependencies_discard super end |