Commit 4facb1c4 authored by Lukas Burgey's avatar Lukas Burgey
Browse files

Rename method

parent a16ca23c
......@@ -63,7 +63,7 @@ class Site(models.Model):
def __str__(self):
return self.name
def client_fetched(self):
def client_updated(self):
self.last_fetch = make_aware(datetime.now())
self.save()
......@@ -87,9 +87,10 @@ class Site(models.Model):
for deployment in deployments.all():
# TODO replace this optimism with an acknowledgement
deployment.client_got_deployment()
deployment.client_updated()
self.client_fetched()
# TODO we expect the client to get the update here
self.client_updated()
return services
......@@ -257,6 +258,9 @@ class Deployment(models.Model):
auto_now=True
)
def __str__(self):
return '{}@{}'.format(self.user, self.service)
def deploy_key(self, key):
# key state: -> (2.5)
self.ssh_keys.add(key)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment