Class: Dapp::Build::Stage::SourceDependenciesBase
- Defined in:
- lib/dapp/build/stage/source_dependencies_base.rb
Overview
base of source dependencies stages
Direct Known Subclasses
Source1ArchiveDependencies, Source1Dependencies, Source2Dependencies, Source3Dependencies, Source4Dependencies
Instance Attribute Summary
Attributes inherited from Base
#application, #next_stage, #prev_stage
Instance Method Summary collapse
Methods inherited from Base
#build!, #dependencies, #dependencies_empty?, #initialize, #save_in_cache!, #signature
Methods included from Mod::Logging
#ignore_log_commands?, #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 Helper::Trivia
class_to_lowercase, #class_to_lowercase, #delete_file, #kwargs
Methods included from Helper::Sha256
#hashsum, #paths_content_hashsum, #sha256
Constructor Details
This class inherits a constructor from Dapp::Build::Stage::Base
Instance Method Details
#empty? ⇒ Boolean
14 15 16 |
# File 'lib/dapp/build/stage/source_dependencies_base.rb', line 14 def empty? application.git_artifacts.empty? ? true : false end |
#image ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/dapp/build/stage/source_dependencies_base.rb', line 6 def image super do |image| application.git_artifacts.each do |git_artifact| image.add_change_label(git_artifact.full_name.to_sym => git_artifact.latest_commit) end end end |