lib/cluster_chef/server.rb in cluster_chef-3.0.12 vs lib/cluster_chef/server.rb in cluster_chef-3.0.14

- old
+ new

@@ -261,7 +261,21 @@ def block_device_mapping composite_volumes.values.map(&:block_device_mapping).compact end + # ugh. non-dry below. + + def announce_as_started + return unless chef_node + announce_state('start') + chef_node.save + end + + def announce_as_stopped + return unless chef_node + announce_state('stop') + chef_node.save + end + end end