Class: Dapp::Build::Stage::Source4

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

Overview

Source4

Constant Summary collapse

MAX_PATCH_SIZE =
1024 * 1024

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, #layer_commit, #save_in_cache!, #signature

Methods inherited from Base

#build!, #image, #save_in_cache!, #signature

Methods included from Mod::Logging

#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 Mod::Artifact

#after_artifacts, #apply_artifact, #artifact_app_options, #artifacts_signatures, #before_artifacts, #do_artifacts, #safe_cp

Methods included from Helper::Trivia

class_to_lowercase, #class_to_lowercase, #delete_file, #kwargs

Methods included from Helper::Sha256

#hashsum, #sha256

Constructor Details

#initialize(application, next_stage) ⇒ Source4

Returns a new instance of Source4.



8
9
10
11
# File 'lib/dapp/build/stage/source_4.rb', line 8

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

Instance Method Details

#dependencies_checksum ⇒ Object



21
22
23
# File 'lib/dapp/build/stage/source_4.rb', line 21

def dependencies_checksum
  hashsum [super, (changes_size_since_source3 / MAX_PATCH_SIZE).to_i]
end

#next_source_stage ⇒ Object



17
18
19
# File 'lib/dapp/build/stage/source_4.rb', line 17

def next_source_stage
  next_stage
end

#prev_source_stage ⇒ Object



13
14
15
# File 'lib/dapp/build/stage/source_4.rb', line 13

def prev_source_stage
  prev_stage.prev_stage.prev_stage
end