Dumps given stage appropriately in the dvcfile.
(self, stage, **kwargs)
| 191 | return self.LOADER(self, data, raw) |
| 192 | |
| 193 | def dump(self, stage, **kwargs) -> None: |
| 194 | """Dumps given stage appropriately in the dvcfile.""" |
| 195 | from dvc.stage import PipelineStage |
| 196 | |
| 197 | assert not isinstance(stage, PipelineStage) |
| 198 | if self.verify: |
| 199 | check_dvcfile_path(self.repo, self.path) |
| 200 | logger.debug("Saving information to '%s'.", relpath(self.path)) |
| 201 | dump_yaml(self.path, serialize.to_single_stage_file(stage, **kwargs)) |
| 202 | self.repo.scm_context.track_file(self.relpath) |
| 203 | |
| 204 | def dump_stages(self, stages, **kwargs) -> None: |
| 205 | if not stages: |