projectSettings method

Future<Map<String, dynamic>> projectSettings()

Returns project settings read from Pulumi.{yaml,yml,json}.

Implementation

Future<Map<String, dynamic>> projectSettings() async {
  final path = _findSettingsPath('Pulumi');
  if (path == null) {
    throw StateError(
      'failed to find project settings file in workdir: $workDir',
    );
  }
  return _loadSettings(path);
}