Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@cached_property
def _mappers(self):
return []
@cached_property
def dbs(self):
return [self._queryset.db]
@cached_property
def _cloning(self):
return 1000
@cached_property
def _hooks_home(self):
return os.path.join(self.root_dir, self.GIT_DIR, "hooks")
self.config == {'ssh': 'dvc-storage'}
self.ssh # a RemoteSSH instance
"""
def getter(self):
from dvc.remote import Remote
remote = self.config.get(name)
if not remote:
return None
return Remote(self.repo, name=remote)
getter.__name__ = builtin_str(name)
return cached_property(getter)
@cached_property
def conn(self):
return FTPHost.connect(SERIES_MATRIX_URL.netloc,
user="anonymous", password="anonymous", timeout=SOCKET_TIMEOUT)
@cached_property
def _hooks_home(self):
return os.path.join(self.root_dir, self.GIT_DIR, "hooks")
@cached_property
def url(self):
return "{}://{}{}".format(self.scheme, self.netloc, self._spath)
@cached_property
def digest(self):
return self.text_digest(self.orig_text)
@cached_property
def _path(self):
return _URLPathInfo(self._spath)