Class: Dapp::Dimg::Build::Stage::BeforeInstall
- Defined in:
- lib/dapp/dimg/build/stage/before_install.rb
Instance Attribute Summary
Attributes inherited from Base
#dimg, #next_stage, #prev_stage
Instance Method Summary collapse
- #builder_checksum ⇒ Object
- #dependencies ⇒ Object
- #empty? ⇒ Boolean
- #image_should_be_untagged_condition ⇒ Object
-
#initialize(dimg, next_stage) ⇒ BeforeInstall
constructor
A new instance of BeforeInstall.
- #prepare_image ⇒ Object
Methods inherited from Base
#adding_custom_dir_mounts, #adding_mounts_by_type, #artifact?, #build!, #build_lock!, #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, #labels_custom_dir_mounts, #labels_mounts_by_type, #layer_commit, #name, #save_in_cache!, #signature
Methods included from Mod::Logging
#ignore_log_commands?, #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, #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) ⇒ BeforeInstall
Returns a new instance of BeforeInstall.
6 7 8 9 |
# File 'lib/dapp/dimg/build/stage/before_install.rb', line 6 def initialize(dimg, next_stage) @prev_stage = From.new(dimg, self) super end |
Instance Method Details
#builder_checksum ⇒ Object
19 20 21 |
# File 'lib/dapp/dimg/build/stage/before_install.rb', line 19 def builder_checksum dimg.builder.before_install_checksum end |
#dependencies ⇒ Object
15 16 17 |
# File 'lib/dapp/dimg/build/stage/before_install.rb', line 15 def dependencies [builder_checksum] end |
#empty? ⇒ Boolean
11 12 13 |
# File 'lib/dapp/dimg/build/stage/before_install.rb', line 11 def empty? !dimg.builder.before_install? end |
#image_should_be_untagged_condition ⇒ Object
29 30 31 |
# File 'lib/dapp/dimg/build/stage/before_install.rb', line 29 def image_should_be_untagged_condition false end |
#prepare_image ⇒ Object
23 24 25 26 27 |
# File 'lib/dapp/dimg/build/stage/before_install.rb', line 23 def prepare_image super do dimg.builder.before_install(image) end end |