Class: Dapp::Dimg::Build::Stage::GABase
- Defined in:
- lib/dapp/dimg/build/stage/ga_base.rb
Direct Known Subclasses
GAArchive, GALatestPatch, GARelatedBase, Setup::GAPostSetupPatch
Instance Attribute Summary
Attributes inherited from Base
#dimg, #next_stage, #prev_stage
Instance Method Summary collapse
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, #dependencies_discard, #dependencies_empty?, #get_ruby2go_state_hash, #git_artifacts_dependencies, #image, #image_add_custom_mounts, #image_add_mounts, #image_add_mounts_labels, #image_add_service_mounts, #initialize, #labels_custom_dir_mounts, #labels_mounts_by_type, #layer_commit, #name, #save_in_cache!, #set_ruby2go_state_hash, #signature
Methods included from Mod::Logging
#image_should_be_introspected?, #image_should_be_introspected_after_build?, #image_should_be_introspected_before_build?, #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
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
This class inherits a constructor from Dapp::Dimg::Build::Stage::Base
Instance Method Details
#empty? ⇒ Boolean
19 20 21 |
# File 'lib/dapp/dimg/build/stage/ga_base.rb', line 19 def empty? dimg.git_artifacts.empty? || super end |
#g_a_stage? ⇒ Boolean
23 24 25 |
# File 'lib/dapp/dimg/build/stage/ga_base.rb', line 23 def g_a_stage? true end |
#prepare_image ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/dapp/dimg/build/stage/ga_base.rb', line 6 def prepare_image super do image.add_volumes_from dimg.dapp.gitartifact_container image.add_volume "#{dimg.tmp_path('archives')}:#{dimg.container_tmp_path('archives')}:ro" image.add_volume "#{dimg.tmp_path('patches')}:#{dimg.container_tmp_path('patches')}:ro" dimg.git_artifacts.each do |git_artifact| image.add_service_change_label(dimg.dapp.dimgstage_g_a_commit_label(git_artifact.paramshash).to_sym => layer_commit(git_artifact)) image.add_command git_artifact.send(apply_command_method, self) end end end |