Class: Dapp::Build::Stage::InstallGroup::Install

Inherits:
Base
  • Object
show all
Includes:
Mod::Group
Defined in:
lib/dapp/build/stage/install/install.rb

Overview

Install

Instance Attribute Summary

Attributes inherited from Base

#dimg, #next_stage, #prev_stage

Instance Method Summary collapse

Methods included from Mod::Group

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

Methods inherited from Base

#artifact?, #build!, #build_lock!, #dependencies, #dependencies_empty?, #image, #image_add_build_volumes, #image_add_default_volumes, #image_add_tmp_volumes, #image_add_volumes, #image_should_be_build?, #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, next_stage) ⇒ Install

Returns a new instance of Install.



9
10
11
12
# File 'lib/dapp/build/stage/install/install.rb', line 9

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

Instance Method Details

#builder_checksumObject



22
23
24
# File 'lib/dapp/build/stage/install/install.rb', line 22

def builder_checksum
  dimg.builder.install_checksum
end

#contextObject



18
19
20
# File 'lib/dapp/build/stage/install/install.rb', line 18

def context
  [install_dependencies_files_checksum, builder_checksum]
end

#empty?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/dapp/build/stage/install/install.rb', line 14

def empty?
  !dimg.builder.install?
end

#prepare_imageObject



26
27
28
29
# File 'lib/dapp/build/stage/install/install.rb', line 26

def prepare_image
  super
  dimg.builder.install(image)
end