Signed-off-by: Chris Larson <chris_larson@mentor.com>
"""
Trigger cooker 'shutdown' mode
"""
- command.cooker.state = bb.cooker.state.shutdown
+ command.cooker.shutdown()
def stateStop(self, command, params):
"""
Stop the cooker
"""
- command.cooker.state = bb.cooker.state.stop
+ command.cooker.stop()
def getCmdLineAction(self, command, params):
"""
bb.event.fire(CookerExit(), self.configuration.event_data)
+ def shutdown(self):
+ self.state = state.shutdown
+
+ def stop(self):
+ self.state = state.stop
+
class CookerExit(bb.event.Event):
"""
Notify clients of the Cooker shutdown