Sha256: ccf449c0be245cb23695eba6464e5784060f37b1c611e3392c9e863192abdd46
Contents?: true
Size: 566 Bytes
Versions: 1
Compression:
Stored size: 566 Bytes
Contents
module Percheron module Actions class Restart include Base def initialize(container) @container = container end def execute! results = [] results << stop! results << start! results.compact.empty? ? nil : container end private attr_reader :container def stop! Stop.new(container).execute! end def start! Start.new(container, dependant_containers: container.dependant_containers.values).execute! end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
percheron-0.6.4 | lib/percheron/actions/restart.rb |