| 21 | } |
| 22 | |
| 23 | void ConfigPackageUtility::CreatePackage(const String& name) |
| 24 | { |
| 25 | String path = GetPackageDir() + "/" + name; |
| 26 | |
| 27 | if (Utility::PathExists(path)) |
| 28 | BOOST_THROW_EXCEPTION(std::invalid_argument("Package already exists.")); |
| 29 | |
| 30 | Utility::MkDirP(path, 0700); |
| 31 | WritePackageConfig(name); |
| 32 | } |
| 33 | |
| 34 | void ConfigPackageUtility::DeletePackage(const String& name) |
| 35 | { |
nothing calls this directly
no test coverage detected