Class: Dapp::Build::Stage::Artifact

Inherits:
Base
  • Object
show all
Includes:
Mod::Artifact
Defined in:
lib/dapp/build/stage/artifact.rb

Overview

Artifact

Instance Attribute Summary

Attributes inherited from Base

#application, #next_stage, #prev_stage

Instance Method Summary collapse

Methods included from Mod::Artifact

#apply_artifact, #artifact_app_options, #artifacts, #artifacts_signatures, #safe_cp

Methods inherited from Base

#build!, #dependencies_empty?, #empty?, #save_in_cache!, #signature

Methods included from Mod::Logging

#image_info, #log_build, #log_image_commands, #log_image_info, #should_be_introspected?, #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) ⇒ Artifact

Returns a new instance of Artifact.



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

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

Instance Method Details

#dependencies ⇒ Object



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

def dependencies
  artifacts_signatures
end

#image ⇒ Object



17
18
19
20
21
# File 'lib/dapp/build/stage/artifact.rb', line 17

def image
  super do |image|
    artifacts.each { |artifact| apply_artifact(artifact, image) }
  end
end