TenantProjectPubspec class

Represents a parsed pubspec.yaml file of a tenant project. Provides methods to validate its contents.

Constructors

TenantProjectPubspec.new(Pubspec pubspec)
TenantProjectPubspec.fromFile(File pubspecFile)
Reads and parses the given pubspec.yaml file.
factory
TenantProjectPubspec.fromProjectDir(Directory projectDirectory)
Reads and parses the pubspec.yaml file in the given project directory.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
pubspec → Pubspec
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

isServerpodServer() bool
Returns true if the pubspec.yaml appears to represent a Serverpod server.
isWorkspaceResolved() bool
Returns true if the pubspec.yaml has a workspace resolution directive.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
projectDependencyIssues({bool requireServerpod = true}) List<String>
Validates the pubspec.yaml dependencies of a customer project in order to be deployed to Serverpod Cloud.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited