Class: Dapp::Build::Stage::Source5

Inherits:
SourceBase show all
Defined in:
lib/dapp/build/stage/source_5.rb

Overview

Source5

Constant Summary

Constants inherited from SourceBase

Dapp::Build::Stage::SourceBase::GITARTIFACT_IMAGE

Instance Attribute Summary

Attributes inherited from Base

#application, #next_stage, #prev_stage

Instance Method Summary collapse

Methods inherited from SourceBase

#image

Methods inherited from Base

#build!, #dependencies_empty?, #image, #save_in_cache!, #signature

Methods included from Mod::Logging

#ignore_log_commands?, #image_info, #log_build, #log_image_commands, #log_image_info, #should_be_introspected?, #should_be_not_detailed?, #should_be_not_present?, #should_be_skipped?, #size_difference?

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) ⇒ Source5

Returns a new instance of Source5.



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

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

Instance Method Details

#dependencies ⇒ Object



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

def dependencies
  [commit_list]
end

#dependencies_stage ⇒ Object



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

def dependencies_stage
  nil
end

#empty? ⇒ Boolean

Returns:

  • (Boolean)


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

def empty?
  dependencies_empty?
end

#layer_commit(git_artifact) ⇒ Object



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

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

#next_source_stage ⇒ Object



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

def next_source_stage
  nil
end

#prev_source_stage ⇒ Object



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

def prev_source_stage
  prev_stage
end