/* eslint-env node */
'use strict';

const AddonDocsConfig = require('../lib/config');

module.exports = class extends AddonDocsConfig {
  shouldDeploy() {
    let env = process.env;
    if (env.CI) {
      // If in CI, deploy whenever we do a build on master in the default ember-try scenario
      return env.TRAVIS_BRANCH === 'master' && env.EMBER_TRY_SCENARIO === 'ember-default';
    } else {
      // Always deploy when `ember deploy` is manually run
      return true;
    }
  }
}

@@ -134,355 +134,7 @@
 g %7B%0A
-  shouldDeploy() %7B%0A    let env = process.env;%0A    if (env.CI) %7B%0A      // If in CI, deploy whenever we do a build on master in the default ember-try scenario%0A      return env.TRAVIS_BRANCH === 'master' && env.EMBER_TRY_SCENARIO === 'ember-default';%0A    %7D else %7B%0A      // Always deploy when %60ember deploy%60 is manually run%0A      return true;%0A    %7D%0A  %7D
 %0A%7D%0A

Fix deploys with new Travis setup