Class: Dapp::Dimg::Artifact

Inherits:
Dimg
  • Object
show all
Defined in:
lib/dapp/dimg/artifact.rb

Instance Attribute Summary

Attributes inherited from Dimg

#config, #dapp, #ignore_git_fetch, #should_be_built

Instance Method Summary collapse

Methods inherited from Dimg

#artifacts, #build!, #build_cache_version, #builder, #cleanup_tmp, #dev_mode?, #export!, #export_base!, #export_stages!, #import_base!, #import_stages!, #initialize, #introspect_image!, #run, #scratch?, #stage_image_name, #tag!

Methods included from Helper::Sha256

#hashsum, #paths_content_hashsum, #sha256

Methods included from Dimg::Stages

#all_images, #all_stages, #signature, #stage_cache_format, #stage_dapp_label, #tagged_images

Methods included from Dimg::Path

#build_path, #container_dapp_path, #container_tmp_path, #home_path, #tmp_path

Methods included from Dimg::GitArtifact

#git_artifacts, #local_git_artifacts, #remote_git_artifacts

Constructor Details

This class inherits a constructor from Dapp::Dimg::Dimg

Instance Method Details

#after_stages_build!Object



4
5
# File 'lib/dapp/dimg/artifact.rb', line 4

def after_stages_build!
end

#artifact?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/dapp/dimg/artifact.rb', line 11

def artifact?
  true
end

#last_stageObject



19
20
21
# File 'lib/dapp/dimg/artifact.rb', line 19

def last_stage
  @last_stage ||= Build::Stage::BuildArtifact.new(self)
end

#should_be_built?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/dapp/dimg/artifact.rb', line 15

def should_be_built?
  false
end

#stage_should_be_introspected?(name) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/dapp/dimg/artifact.rb', line 7

def stage_should_be_introspected?(name)
  dapp.cli_options[:introspect_artifact_stage] == name
end