How to use cdk - 2 common examples

To help you get started, we’ve selected a few cdk examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github redhat-developer-tooling / developer-platform-install / test / check-requirements.js View on Github external
function checkRequirements() {
  for (var attribute in reqs) {
    // sha256 is not set for macOS Java SE
    if(reqs[attribute].sha256sum !== '') {
      data[attribute] = reqs[attribute].url;
      count++;
    }
  }

  //to check if the url looks like it points to what it is supposed to
  fileNames['cdk.zip'] = 'cdk';
  fileNames['rhel-vagrant-virtualbox.box'] = 'vagrant-virtualbox.box';
  fileNames['oc.zip'] = 'oc-origin-cli';
  fileNames['cygwin.exe'] = 'cygwin';
  fileNames['jbds.jar'] = 'devstudio';
  fileNames['jdk.msi'] = 'openjdk';
  fileNames['vagrant.msi'] = 'vagrant';
  fileNames['virtualbox.exe'] = 'virtualbox';
  fileNames['7zip.zip'] = '7-Zip';
  fileNames['7zip-extra.zip'] = '7-Zip';

  //to check if the files are rougly the size they should be
  minSizes['cdk.zip'] = 50 * 1024;
  minSizes['rhel-vagrant-virtualbox.box'] = 750 * 1024 * 1024;
  minSizes['oc.zip'] = 10 * 1024 * 1024;
  minSizes['cygwin.exe'] = 500 * 1024;
  minSizes['jbds.jar'] = 400 * 1024 * 1024;
github redhat-developer-tooling / developer-platform-install / test / check-requirements.js View on Github external
}

  //to check if the url looks like it points to what it is supposed to
  fileNames['cdk.zip'] = 'cdk';
  fileNames['rhel-vagrant-virtualbox.box'] = 'vagrant-virtualbox.box';
  fileNames['oc.zip'] = 'oc-origin-cli';
  fileNames['cygwin.exe'] = 'cygwin';
  fileNames['jbds.jar'] = 'devstudio';
  fileNames['jdk.msi'] = 'openjdk';
  fileNames['vagrant.msi'] = 'vagrant';
  fileNames['virtualbox.exe'] = 'virtualbox';
  fileNames['7zip.zip'] = '7-Zip';
  fileNames['7zip-extra.zip'] = '7-Zip';

  //to check if the files are rougly the size they should be
  minSizes['cdk.zip'] = 50 * 1024;
  minSizes['rhel-vagrant-virtualbox.box'] = 750 * 1024 * 1024;
  minSizes['oc.zip'] = 10 * 1024 * 1024;
  minSizes['cygwin.exe'] = 500 * 1024;
  minSizes['jbds.jar'] = 400 * 1024 * 1024;
  minSizes['jdk.msi'] = 50 * 1024 *1024;
  minSizes['vagrant.msi'] = 80 * 1024 * 1024;
  minSizes['virtualbox.exe'] = 85 * 1024 * 1024;
  minSizes['7zip.zip'] = 200 * 1024;
  minSizes['7zip-extra.zip'] = 400 * 1024;

  console.log('-------------------------------');
  console.log('Checking download URLs');
  for (var key in data) {
    checkFileName(key);
    checkUrl(key);
  }

cdk

AWS CDK Toolkit

Apache-2.0
Latest version published 8 days ago

Package Health Score

98 / 100
Full package analysis

Popular cdk functions