Method: Controlplane#latest_image_next
- Defined in:
- lib/core/controlplane.rb
#latest_image_next(a_gvc = gvc, a_org = org, commit: nil) ⇒ Object
51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/core/controlplane.rb', line 51 def latest_image_next(a_gvc = gvc, a_org = org, commit: nil) commit ||= config.[:commit] @latest_image_next ||= {} @latest_image_next[a_gvc] ||= begin latest_image_name = latest_image(a_gvc, a_org) image = latest_image_name.split(":").first image += ":#{extract_image_number(latest_image_name) + 1}" image += "_#{commit}" if commit image end end |