Fix deployer.exec() #619
@ -48,9 +48,9 @@ class DockerDeployer(Deployer):
|
|||||||
except DockerException as e:
|
except DockerException as e:
|
||||||
raise DeployerException(e)
|
raise DeployerException(e)
|
||||||
|
|
||||||
def execute(self, service, command, envs):
|
def execute(self, service, command, tty, envs):
|
||||||
try:
|
try:
|
||||||
return self.docker.compose.execute(service=service, command=command, envs=envs)
|
return self.docker.compose.execute(service=service, command=command, tty=tty, envs=envs)
|
||||||
except DockerException as e:
|
except DockerException as e:
|
||||||
raise DeployerException(e)
|
raise DeployerException(e)
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ class Deployer(ABC):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def execute(self, service_name, command, envs):
|
def execute(self, service_name, command, tty, envs):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
|
@ -81,7 +81,7 @@ class K8sDeployer(Deployer):
|
|||||||
# Also look into whether it makes sense to get ports for k8s
|
# Also look into whether it makes sense to get ports for k8s
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def execute(self, service_name, command, envs):
|
def execute(self, service_name, command, tty, envs):
|
||||||
# Call the API to execute a command in a running container
|
# Call the API to execute a command in a running container
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user