containsPubspec method

Future<bool> containsPubspec()

Implementation

Future<bool> containsPubspec() async {
  final file = File('${_workdir.path}/pubspec.yaml');
  if (file.existsSync()) {
    return true;
  } else {
    final shortFile = File('${_workdir.path}/pubspec.yml');
    if (shortFile.existsSync()) {
      return true;
    }
    return false;
  }
}