Class: Dapp::Build::Stage::Source1Archive

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

Overview

Source1Archive

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

#dependencies_checksum, #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

#hashsum, #sha256

Constructor Details

#initialize(application, next_stage) ⇒ Source1Archive

Returns a new instance of Source1Archive.



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

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

Instance Method Details

#container_archive_path(git_artifact) ⇒ Object



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

def container_archive_path(git_artifact)
  application.container_build_path git_artifact.filename '.tar.gz'
end

#next_source_stage ⇒ Object



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

def next_source_stage
  next_stage
end

#prev_source_stage ⇒ Object



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

def prev_source_stage
  nil
end