lib/einhorn/command.rb in einhorn-0.4.8 vs lib/einhorn/command.rb in einhorn-0.4.9

- old
+ new

@@ -155,13 +155,18 @@ def self.dumpable_state global_state = Einhorn::State.state descriptor_state = Einhorn::Event.persistent_descriptors.map do |descriptor| descriptor.to_state end + plugin_state = {} + Einhorn.plugins.each do |name, plugin| + plugin_state[name] = plugin::State.state if plugin.const_defined?(:State) + end { :state => global_state, - :persistent_descriptors => descriptor_state + :persistent_descriptors => descriptor_state, + :plugins => plugin_state } end def self.reload unless Einhorn::State.respawn