Beispiel #1
0
    def save(self, *args, **kwargs):
        env_name = Runtime.get_env()
        if self.name == env_name:
            image = self.base_image
            if self.runtime_image:
                image = self.runtime_image

            Runtime.set_env(
                self.name,
                self.repo,
                image
        )
        super().save(*args, **kwargs)
Beispiel #2
0
 def set_env(self, name = None, repo = None, image = None):
     Runtime.set_env(name, repo, image)