Module: Dapp::Dimg::Dimg::Stages
- Included in:
- Dapp::Dimg::Dimg
- Defined in:
- lib/dapp/dimg/dimg/stages.rb
Instance Method Summary collapse
- #all_images ⇒ Object
- #all_stages ⇒ Object
- #signature ⇒ Object
- #stage_cache_format ⇒ Object
- #stage_dapp_label ⇒ Object
- #tagged_images ⇒ Object (also: #export_images)
Instance Method Details
#all_images ⇒ Object
22 23 24 |
# File 'lib/dapp/dimg/dimg/stages.rb', line 22 def all_images @all_images ||= all_stages.map(&:image).uniq!(&:name) end |
#all_stages ⇒ Object
26 27 28 |
# File 'lib/dapp/dimg/dimg/stages.rb', line 26 def all_stages stages + artifacts.map(&:all_stages).flatten end |
#signature ⇒ Object
5 6 7 |
# File 'lib/dapp/dimg/dimg/stages.rb', line 5 def signature last_stage.send(:signature) end |
#stage_cache_format ⇒ Object
9 10 11 |
# File 'lib/dapp/dimg/dimg/stages.rb', line 9 def stage_cache_format "#{dapp.stage_cache}:%{signature}" end |
#stage_dapp_label ⇒ Object
13 14 15 |
# File 'lib/dapp/dimg/dimg/stages.rb', line 13 def stage_dapp_label dapp.stage_dapp_label end |
#tagged_images ⇒ Object Also known as: export_images
17 18 19 |
# File 'lib/dapp/dimg/dimg/stages.rb', line 17 def tagged_images all_images.select(&:tagged?) end |