TenantProjectPubspec.fromProjectDir constructor
TenantProjectPubspec.fromProjectDir(
- Directory projectDirectory
Reads and parses the pubspec.yaml file in the given project directory.
If the pubspec.yaml file is not found or if it cannot be parsed, error messages are printed to logger if provided, and ErrorExitException is thrown.
Implementation
factory TenantProjectPubspec.fromProjectDir(
final Directory projectDirectory,
) {
final pubspecFile = File('${projectDirectory.path}/pubspec.yaml');
return TenantProjectPubspec.fromFile(pubspecFile);
}