checkIfInstalled static method

void checkIfInstalled()

Implementation

static void checkIfInstalled() {
  try {
    Process.runSync('ruby', ['-v'], runInShell: true);
  } catch (e) {
    print('Ruby is not installed, please install Ruby before running the script');
    exit(0);
  }
}