Returns the contents of a path in the project root
(&self, path: &str)
| 74 | |
| 75 | /// Returns the contents of a path in the project root |
| 76 | pub fn read_file(&self, path: &str) -> String { |
| 77 | let full = self.root().join(path); |
| 78 | fs::read_to_string(&full) |
| 79 | .unwrap_or_else(|e| panic!("could not read file {}: {}", full.display(), e)) |
| 80 | } |
| 81 | |
| 82 | pub fn lambda_dir(&self) -> PathBuf { |
| 83 | self.build_dir().join("lambda") |