deployFirestore method
Deploy Firestore rules
Implementation
Future<bool> deployFirestore() async {
info('Deploying Firestore rules...');
final String? projectId = _requireFirebaseProjectId();
if (projectId == null) {
return false;
}
final ProcessResult? result = await _runner.runWithRetry(
'firebase',
<String>[
'deploy',
'--only',
'firestore:rules,firestore:indexes',
'--project',
projectId,
],
workingDirectory: config.outputDir,
environment: _authEnvironment,
operationName: 'Deploy Firestore',
);
return result != null && result.success;
}