class Flock::Sandbox::DockerStop
Public Class Methods
new(definition)
click to toggle source
# File lib/flock/sandbox.rb, line 132 def initialize(definition) @definition = definition end
Public Instance Methods
run()
click to toggle source
# File lib/flock/sandbox.rb, line 136 def run @definition.containers.each do |c| cont = begin ::Docker::Container.get(c[:name]) rescue ::Docker::Error::NotFoundError end next unless c puts "Stop #{c[:name]}" cont.kill cont.delete end end