def model_sources(self, this_project, own_project=None): if own_project is None: own_project = this_project paths = own_project.get('source-paths', []) if self.create_template.label == 'build': return Source(this_project, own_project=own_project).get_models(paths, self.create_template) elif self.create_template.label == 'test': return Source(this_project, own_project=own_project).get_test_models(paths, self.create_template) elif self.create_template.label == 'archive': return [] else: raise RuntimeError("unexpected create template type: '{}'".format(self.create_template.label))
def find_csvs(self): return Source(self.project).get_csvs(self.project['data-paths'])
def analysis_sources(self, project): paths = project.get('analysis-paths', []) return Source(project).get_analyses(paths)
def project_schemas(self): source_paths = self.project.get('source-paths', []) return Source(self.project).get_schemas(source_paths)
def project_tests(self): source_paths = self.project.get('test-paths', []) return Source(self.project).get_tests(source_paths)
def get_archives(self, project): archive_template = dbt.templates.ArchiveInsertTemplate() return Source(project, own_project=project).get_archives(archive_template)
def get_macros(self, this_project, own_project=None): if own_project is None: own_project = this_project paths = own_project.get('macro-paths', []) return Source(this_project, own_project=own_project).get_macros(paths)
def get_archives(self, project): return Source(project, own_project=project).get_archives()
def model_sources(self, this_project, own_project=None): if own_project is None: own_project = this_project paths = own_project.get('source-paths', []) return Source(this_project, own_project=own_project).get_models(paths)