Class: Dapp::Dimg::Build::Stage::Setup::GAPostSetupPatch

Inherits:
GABase
  • Object
show all
Includes:
Mod::Group
Defined in:
lib/dapp/dimg/build/stage/setup/ga_post_setup_patch.rb

Constant Summary collapse

MAX_PATCH_SIZE =
1024 * 1024

Instance Attribute Summary

Attributes inherited from Base

#dimg, #next_stage, #prev_stage

Instance Method Summary collapse

Methods included from Mod::Group

#group_name, #group_should_be_opened?, #log_group_name, #log_image_build, #log_name_context, #prev_group_stage, #prev_group_stages

Methods inherited from GABase

#empty?, #g_a_stage?, #prepare_image

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?, #empty?, #g_a_stage?, #get_ruby2go_state_hash, #git_artifacts_dependencies, #image, #image_add_custom_mounts, #image_add_mounts, #image_add_mounts_labels, #image_add_service_mounts, #labels_custom_dir_mounts, #labels_mounts_by_type, #layer_commit, #name, #prepare_image, #save_in_cache!, #set_ruby2go_state_hash, #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) ⇒ GAPostSetupPatch

Returns a new instance of GAPostSetupPatch.



11
12
13
14
# File 'lib/dapp/dimg/build/stage/setup/ga_post_setup_patch.rb', line 11

def initialize(dimg, next_stage)
  @prev_stage = Setup.new(dimg, self)
  super
end

Instance Method Details

#dependenciesObject



21
22
23
# File 'lib/dapp/dimg/build/stage/setup/ga_post_setup_patch.rb', line 21

def dependencies
  @dependencies ||= [(changes_size_since_g_a_pre_setup_patch / MAX_PATCH_SIZE).to_i]
end

#renewObject



16
17
18
19
# File 'lib/dapp/dimg/build/stage/setup/ga_post_setup_patch.rb', line 16

def renew
  dependencies_discard
  super
end