Module: Dapp::Dimg::Dimg::Stages

Included in:
Dapp::Dimg::Dimg
Defined in:
lib/dapp/dimg/dimg/stages.rb

Instance Method Summary collapse

Instance Method Details

#all_imagesObject



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_stagesObject



26
27
28
# File 'lib/dapp/dimg/dimg/stages.rb', line 26

def all_stages
  stages + artifacts.map(&:all_stages).flatten
end

#signatureObject



5
6
7
# File 'lib/dapp/dimg/dimg/stages.rb', line 5

def signature
  last_stage.send(:signature)
end

#stage_cache_formatObject



9
10
11
# File 'lib/dapp/dimg/dimg/stages.rb', line 9

def stage_cache_format
  "#{dapp.stage_cache}:%{signature}"
end

#stage_dapp_labelObject



13
14
15
# File 'lib/dapp/dimg/dimg/stages.rb', line 13

def stage_dapp_label
  dapp.stage_dapp_label
end

#tagged_imagesObject 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