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

#dependencies_checksum, #layer_commit, #save_in_cache!

Methods inherited from Base

#build!, #save_in_cache!

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

Returns a new instance of Source5.



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

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

Instance Method Details

#imageObject



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

def image
  super do |image|
    image.add_expose(exposes)  unless exposes.empty?
    image.add_env(envs)        unless envs.empty?
    image.add_workdir(workdir) unless workdir.nil?
  end
end

#next_source_stageObject



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

def next_source_stage
  nil
end

#prev_source_stageObject



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

def prev_source_stage
  prev_stage
end

#signatureObject



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

def signature
  hashsum [super, *exposes]
end