Class: Dapp::Build::Stage::GALatestPatch

Inherits:
GABase
  • Object
show all
Defined in:
lib/dapp/build/stage/ga_latest_patch.rb

Overview

GALatestPatch

Direct Known Subclasses

GAArtifactPatch

Instance Attribute Summary

Attributes inherited from Base

#application, #next_stage, #prev_stage

Instance Method Summary collapse

Methods inherited from GABase

#prepare_image

Methods inherited from Base

#build!, #build_lock!, #dependencies_empty?, #image, #image_add_tmp_volumes, #image_should_be_build?, #prepare_image, #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

Methods included from Helper::Sha256

#hashsum, #paths_content_hashsum, #sha256

Constructor Details

#initialize(application, next_stage) ⇒ GALatestPatch

Returns a new instance of GALatestPatch.



6
7
8
9
# File 'lib/dapp/build/stage/ga_latest_patch.rb', line 6

def initialize(application, next_stage)
  @prev_stage = AfterSetupArtifact.new(application, self)
  super
end

Instance Method Details

#dependenciesObject



23
24
25
# File 'lib/dapp/build/stage/ga_latest_patch.rb', line 23

def dependencies
  [commit_list]
end

#dependencies_stageObject



19
20
21
# File 'lib/dapp/build/stage/ga_latest_patch.rb', line 19

def dependencies_stage
  nil
end

#empty?Boolean

Returns:

  • (Boolean)


33
34
35
# File 'lib/dapp/build/stage/ga_latest_patch.rb', line 33

def empty?
  dependencies_empty?
end

#layer_commit(git_artifact) ⇒ Object



27
28
29
30
31
# File 'lib/dapp/build/stage/ga_latest_patch.rb', line 27

def layer_commit(git_artifact)
  commits[git_artifact] ||= begin
    git_artifact.latest_commit
  end
end

#next_g_a_stageObject



15
16
17
# File 'lib/dapp/build/stage/ga_latest_patch.rb', line 15

def next_g_a_stage
  nil
end

#prev_g_a_stageObject



11
12
13
# File 'lib/dapp/build/stage/ga_latest_patch.rb', line 11

def prev_g_a_stage
  prev_stage.prev_stage # GAPostSetupPatch
end