Class: Dapp::Build::Stage::Source4
- Inherits:
-
SourceBase
- Object
- Base
- SourceBase
- Dapp::Build::Stage::Source4
- 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
- #dependencies_checksum ⇒ Object
-
#initialize(application, next_stage) ⇒ Source4
constructor
A new instance of Source4.
- #next_source_stage ⇒ Object
- #prev_source_stage ⇒ Object
Methods inherited from SourceBase
#image, #layer_commit, #save_in_cache!, #signature
Methods inherited from Base
#build!, #image, #save_in_cache!, #signature
Methods included from Helper::Trivia
class_to_lowercase, #class_to_lowercase, #delete_file, #kwargs, #to_mb
Methods included from Helper::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 |