Dead code
This commit is contained in:
parent
eb6d63a533
commit
496230c4d3
11
src/funko.cr
11
src/funko.cr
@ -206,17 +206,6 @@ module Funko
|
|||||||
end
|
end
|
||||||
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`
|
# Wait up to `t` seconds for the funko to reach the requested `state`
|
||||||
def wait_for(new_scale : Int, t)
|
def wait_for(new_scale : Int, t)
|
||||||
channel = Channel(Nil).new
|
channel = Channel(Nil).new
|
||||||
|
Loading…
Reference in New Issue
Block a user