Method: Controlplane#latest_image

Defined in:
lib/core/controlplane.rb

#latest_image(a_gvc = gvc, a_org = org) ⇒ Object

image



42
43
44
45
46
47
48
49
# File 'lib/core/controlplane.rb', line 42

def latest_image(a_gvc = gvc, a_org = org)
  @latest_image ||= {}
  @latest_image[a_gvc] ||=
    begin
      items = query_images(a_gvc, a_org)["items"]
      latest_image_from(items, app_name: a_gvc)
    end
end