Esempio n. 1
0
 def getRuntime(self,environment,extraDockerFlags=None,entrypoint=None):
   """
   Returns the subuser's Runtime object for it's current permissions, creating it if necessary.
   """
   if not self.__runtime:
     self.__runtime = Runtime(self.user,subuser=self,environment=environment,extraDockerFlags=extraDockerFlags,entrypoint=entrypoint)
   return self.__runtime
Esempio n. 2
0
 def getRuntime(self, environment):
     """
 Returns the subuser's Runtime object for it's current permissions, creating it if necessary.
 """
     if not self.__runtime:
         self.__runtime = Runtime(self.getUser(),
                                  subuser=self,
                                  environment=environment)
     return self.__runtime