grim/local-pipelines

vcs: add slug proper to git backend

2016-07-28, Sean Farley
57202f1fa154
Parents da78cebcf5e2
Children c492054ed38b
vcs: add slug proper to git backend
--- a/pipelines/vcs.py Thu Jul 28 00:59:36 2016 -0700
+++ b/pipelines/vcs.py Thu Jul 28 00:59:54 2016 -0700
@@ -64,6 +64,10 @@
def owner(self):
return self._owner_repo[0]
+ @property
+ def slug(self):
+ return '/'.join(self._owner_repo)
+
class hg_backend(object):
def __init__(self, path):