Module: Dapp::Dimg::Stages
- Included in:
- Dapp::Dimg
- Defined in:
- lib/dapp/dimg/stages.rb
Overview
Stages
Instance Method Summary collapse
Instance Method Details
#images ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/dapp/dimg/stages.rb', line 18 def images (@images ||= []).tap do |images| stages.map do |stage| if stage.respond_to?(:images) images.concat(stage.images) else images << stage.image end end.uniq(&:name) end end |
#signature ⇒ Object
6 7 8 |
# File 'lib/dapp/dimg/stages.rb', line 6 def signature last_stage.send(:signature) end |
#stage_cache_format ⇒ Object
10 11 12 |
# File 'lib/dapp/dimg/stages.rb', line 10 def stage_cache_format "#{project.stage_cache}:%{signature}" end |
#stage_dapp_label ⇒ Object
14 15 16 |
# File 'lib/dapp/dimg/stages.rb', line 14 def stage_dapp_label project.stage_dapp_label end |