def __init__(self, stdout=None, stderr=None, no_color=False): self.file_storage = PDFileStorage( json_dir=settings.PROD_DETAILS_TEST_DIR) self.db_storage = PDDatabaseStorage() self.repo = GitRepo(settings.PROD_DETAILS_JSON_REPO_PATH, settings.PROD_DETAILS_JSON_REPO_URI) super(Command, self).__init__(stdout, stderr, no_color)
def __init__(self, stdout=None, stderr=None, no_color=False): self.file_storage = PDFileStorage(json_dir=settings.PROD_DETAILS_TEST_DIR) self.db_storage = PDDatabaseStorage() self.repo = GitRepo(settings.PROD_DETAILS_JSON_REPO_PATH, settings.PROD_DETAILS_JSON_REPO_URI, settings.PROD_DETAILS_JSON_REPO_BRANCH, name='Product Details') # fake last-modified string since the releng repo doesn't store those files # and we rely on git commits for updates self.last_modified = datetime.now().isoformat() super(Command, self).__init__(stdout, stderr, no_color)