Dead code

This commit is contained in:
Roberto Alsina 2024-07-04 16:57:41 -03:00
parent eb6d63a533
commit 496230c4d3

View File

@ -206,17 +206,6 @@ module Funko
end
end
# Stop container with the newer image
def stop
docker_api = Docr::API.new(Docr::Client.new)
images = self.image_history
containers = self.containers.sort! { |i, j|
(images.index(j.@image_id) || 9999) <=> (images.index(i.@image_id) || 9999)
}
return docker_api.containers.stop(containers[0].@id) unless containers.empty?
nil
end
# Wait up to `t` seconds for the funko to reach the requested `state`
def wait_for(new_scale : Int, t)
channel = Channel(Nil).new