def doColdStartNetworkTransports(self, *args, **kwargs):
     """
     Action method.
     """
     if not driver.is_on('service_gateway'):
         self.automat('gateway-is-not-started')
         return
     from transport import gateway
     restarted_transports = gateway.cold_start()
     if len(restarted_transports) == 0:
         self.automat('all-network-transports-ready')
 def on_resume(self, *args, **kwargs):
     from transport import gateway
     if kwargs.get('cold_start') is True:
         return gateway.cold_start()
     return gateway.start()