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_signature_auto_calculation, #should_be_built

Attributes included from Dimg::Stages

#last_stage

Instance Method Summary collapse

Methods inherited from Dimg

#artifacts, #build!, #build_cache_version, #build_export_image!, #builder, #cleanup_tmp, #dev_mode?, #dimg_export_base!, #dimgstage_should_not_be_pushed?, #enable_should_be_built, #export!, #export_base!, #export_stages!, #force_save_cache?, #get_ruby2go_state_hash, #import_base!, #import_stages!, #initialize, #registry, #registry_dimgstages_tags, #registry_tags, #run, #run_stage, #scratch?, #should_be_built!, #stage_image_name, #tag!, #tag_should_not_be_pushed?, #terminate

Methods included from Helper::Trivia

#check_path?, #check_subpath?, #class_to_lowercase, class_to_lowercase, #delete_file, #ignore_path?, #ignore_path_base, #kwargs, #make_path, #path_checker, #search_file_upward

Methods included from Helper::Sha256

#hashsum, #paths_content_hashsum, #sha256

Methods included from Dimg::Stages

#all_tagged_images, #signature, #stage_by_name, #stage_cache_format, #stage_dapp_label

Methods included from Dimg::Path

#build_path, #container_dapp_path, #container_tmp_path, #home_path, #tmp_dir_exists?, #tmp_path

Methods included from Dimg::GitArtifact

#generate_git_artifacts, #generate_git_embedded_artifacts, #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



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

def after_stages_build!
end

#artifact?Boolean

Returns:

  • (Boolean)


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

def artifact?
  true
end

#last_stage_classObject



27
28
29
# File 'lib/dapp/dimg/artifact.rb', line 27

def last_stage_class
  Build::Stage::BuildArtifact
end

#nameObject



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

def name
  dapp.consistent_uniq_slugify(config._name) unless config._name.nil?
end

#should_be_built?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/dapp/dimg/artifact.rb', line 23

def should_be_built?
  false
end

#stage_should_be_introspected_after_build?(name) ⇒ Boolean

Returns:

  • (Boolean)


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

def stage_should_be_introspected_after_build?(name)
  dapp.options[:introspect_artifact_stage] == name
end

#stage_should_be_introspected_before_build?(name) ⇒ Boolean

Returns:

  • (Boolean)


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

def stage_should_be_introspected_before_build?(name)
  dapp.options[:introspect_artifact_before] == name
end