lib/truck.rb in truck-0.8.2 vs lib/truck.rb in truck-0.8.3

- old
+ new

@@ -13,19 +13,20 @@ def define_context(name, **params) contexts[name] = Context.new(name, **params) end def boot! - contexts.each_value(&:boot!) + contexts.each_value &:boot! end def reset! - each_booted_context &:reset! + shutdown! + boot! end alias_method :reload!, :reset! def shutdown! - each_booted_context &:shutdown! + each_booted_context.to_a.reverse.each &:shutdown! end Error = Class.new StandardError private