lib/command/base.rb in cpl-0.3.3 vs lib/command/base.rb in cpl-0.4.0
- old
+ new
@@ -135,21 +135,21 @@
end
progress.puts
end
def wait_for_workload(workload)
- wait_for("workload to start") { cp.workload_get(workload) }
+ wait_for("workload to start") { cp.fetch_workload(workload) }
end
def wait_for_replica(workload, location)
wait_for("replica") do
cp.workload_get_replicas(workload, location: location)&.dig("items", 0)
end
end
def ensure_workload_deleted(workload)
progress.puts "- Ensure workload is deleted"
- cp.workload_delete(workload, no_raise: true)
+ cp.workload_delete(workload)
end
def latest_image_from(items, app_name: config.app, name_only: true)
matching_items = items.filter { |item| item["name"].start_with?("#{app_name}:") }