lib/percheron/actions/restart.rb in percheron-0.7.16 vs lib/percheron/actions/restart.rb in percheron-0.8.0

- old
+ new

@@ -1,9 +1,8 @@ module Percheron module Actions class Restart - include Base def initialize(unit) @unit = unit end @@ -22,10 +21,10 @@ def stop! Stop.new(unit).execute! end def start! - opts = { dependant_units: unit.startable_dependant_units.values } + opts = { needed_units: unit.startable_needed_units.values } Start.new(unit, opts).execute! end end end