Skip to content
This repository has been archived by the owner on Aug 3, 2022. It is now read-only.

Commit

Permalink
[#856] Determine if site is godi automatically.
Browse files Browse the repository at this point in the history
Instead of passing a --isgodi flag, check the site name and set the flag
automatically.
  • Loading branch information
brew committed Feb 28, 2017
1 parent 10e7f28 commit 6c4f5a2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions index/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@ const usageSections = [
alias: 'd',
description: 'Write files to an S3 bucket (always includes static assets).'
},
{
name: 'isgodi',
alias: 'g',
description: 'A special flag to determine whether to treat the build as GODI. Use this flag if building the Global ODI.'
},
{
name: 'clean',
alias: 'c',
Expand Down Expand Up @@ -107,7 +102,6 @@ const optionDefinitions = [
{name: 'year', alias: 'y', type: Number},
{name: 'clean', alias: 'c', type: Boolean, defaultValue: false},
{name: 'static', alias: 's', type: Boolean, defaultValue: false},
{name: 'isgodi', alias: 'g', type: Boolean, defaultValue: false},
{name: 'deploy', alias: 'd', type: Boolean, defaultValue: false},
{name: 'local', alias: 'l', type: Boolean, defaultValue: false},
{name: 'dryrun', type: Boolean, defaultValue: false},
Expand Down Expand Up @@ -160,7 +154,7 @@ if (options.deploy &&
}
}

const isGodi = options.isgodi;
const isGodi = (options.site === 'global' || options.site === 'global-test');
const domain = options.site;
const year = options.year;
const bucketSite = (isGodi) ? '' : util.format('%s-', domain);
Expand Down

0 comments on commit 6c4f5a2

Please sign in to comment.