Sha256: da28ed31b1fd7f20cb1878f9488e87b8c9b21dda46c018cdfa4dcef14b97de8a
Contents?: true
Size: 449 Bytes
Versions: 2
Compression:
Stored size: 449 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
percheron-0.8.1 | lib/percheron/actions/stop.rb |
percheron-0.8.0 | lib/percheron/actions/stop.rb |