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

#image ⇒ Object



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

def image
  super do |image|
    change_options.each do |k, v|
      next if v.nil? || v.empty?
      image.public_send("add_change_#{k}", v)
    end
  end
end

#next_source_stage ⇒ Object



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

def next_source_stage
  nil
end

#prev_source_stage ⇒ Object



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

def prev_source_stage
  prev_stage
end

#signature ⇒ Object



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

def signature
  hashsum [super, change_options]
end