Sha256: 34c3a0a04d4e9d5b05820efd7e837add4afca1ab79d977ae00ad8a187399d88e
Contents?: true
Size: 570 Bytes
Versions: 5
Compression:
Stored size: 570 Bytes
Contents
module Percheron module Container module Actions class Stop def initialize(container) @container = container end def execute! if container.running? $logger.debug "Stopping '#{container.name}'" container.docker_container.stop! else $logger.debug "Not stopping '#{container.name}' container as it's not running" raise Errors::ContainerNotRunning.new end end private attr_reader :container end end end end
Version data entries
5 entries across 5 versions & 1 rubygems