Sha256: 231f171389244e17ce5b96e83d735b0c3db68b2e8776c23e9387dac0eb6601e0
Contents?: true
Size: 450 Bytes
Versions: 3
Compression:
Stored size: 450 Bytes
Contents
module Percheron module Actions class Stop include Base def initialize(unit) @unit = unit end def execute! results = [] results << stop! if unit.running? results.compact.empty? ? nil : unit end private attr_reader :unit def stop! $logger.info "Stopping '#{unit.display_name}' unit" unit.container.stop! end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
percheron-0.7.16 | lib/percheron/actions/stop.rb |
percheron-0.7.15 | lib/percheron/actions/stop.rb |
percheron-0.7.14 | lib/percheron/actions/stop.rb |