Class: Dapp::Build::Stage::Source4Dependencies

Inherits:
SourceDependenciesBase show all
Defined in:
lib/dapp/build/stage/source_4_dependencies.rb

Overview

Source4Dependencies

Constant Summary collapse

MAX_PATCH_SIZE =
1024 * 1024

Instance Attribute Summary

Attributes inherited from Base

#application, #next_stage, #prev_stage

Instance Method Summary collapse

Methods inherited from SourceDependenciesBase

#empty?, #image

Methods inherited from Base

#build!, #dependencies_empty?, #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) ⇒ Source4Dependencies

Returns a new instance of Source4Dependencies.



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

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

Instance Method Details

#dependencies ⇒ Object



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

def dependencies
  [(changes_size_since_source3 / MAX_PATCH_SIZE).to_i]
end