@leverege/build-tools 1.10.4 → 1.10.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,14 +8,14 @@ let stdbuf = []
8
8
  process.stdin
9
9
  .on( 'data', ( d ) => { stdbuf.push( d ) } )
10
10
  .on( 'end', () => {
11
- const rawCfg = stdbuf.join( '' ).replace( /[":\n\r]/g, '' )
11
+ const rawCfg = stdbuf.join( '' ).replace( /["\n\r]/g, '' )
12
12
  const keyVals = rawCfg.match(/\{(.*)\}/)[1].split(',')
13
13
 
14
14
  const lastLine = keyVals.length - 1
15
15
  console.log( "{" )
16
16
  for( let i = 0; i <= lastLine; i++ ) {
17
17
  const kv = keyVals[i].trim().split( ' ' )
18
- console.log( ` "${kv[0]}": "${kv[1]}"${(i < lastLine ? ',' : '')}` )
18
+ console.log( ` "${kv[0].replace( /:/, '')}": "${kv[1]}"${(i < lastLine ? ',' : '')}` )
19
19
  }
20
20
  console.log( "}" )
21
21
 
package/lib/server/helmup CHANGED
@@ -7,6 +7,7 @@
7
7
  # to be turned into a cronjob to avoid having it run as soon as it gets
8
8
  # deployed.
9
9
  #
10
+ # printf "\nRUNNING LOCALLY\n" && sleep 2
10
11
  PLATFORM=(
11
12
  api-server
12
13
  emailer
@@ -236,13 +237,14 @@ function doInstall() {
236
237
  MUSEUM=$(<${OVERRIDE})
237
238
  printf "\n$YELO_WARN Local chartmuseum name override from ${SERVICE} to ${MUSEUM}\n"
238
239
  fi
239
- helm upgrade --install $SERVICE chartmuseum/$MUSEUM -f $SERVICE/values.yaml 2> /dev/null
240
+ helm upgrade --install $SERVICE chartmuseum/$MUSEUM -f $SERVICE/values.yaml
240
241
  if [ $? -ne 0 ];
241
242
  then
242
243
  cat<<NOTRUNNING
243
244
 
244
- $RED_ERROR The $SERVICE chart failed to upgrade or install. Is chartmuseum up
245
- and running on the proper port? Try firing it up with:
245
+ $RED_ERROR The $SERVICE chart failed to upgrade or install. There may be an
246
+ issue with the service's helm charts, or chartmuseum may not be
247
+ up and running? If the latter, try firing it up with:
246
248
 
247
249
  chartmuseum \\
248
250
  --port="8080" \\
@@ -285,7 +285,8 @@ ahoy.forEach( ( dir ) => {
285
285
  if ( matchedCtx ) {
286
286
  console.log( `
287
287
 
288
- Your current context matches. Do you want to update credentials anyway?
288
+ Current context ${chalk.bold.green(currentCtx)} matches the desired
289
+ context. Do you want to update credentials anyway?
289
290
 
290
291
  ` )
291
292
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "1.10.4",
3
+ "version": "1.10.6",
4
4
  "description": "A package for development build tools.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/getfbcfg CHANGED
@@ -8,14 +8,14 @@ let stdbuf = []
8
8
  process.stdin
9
9
  .on( 'data', ( d ) => { stdbuf.push( d ) } )
10
10
  .on( 'end', () => {
11
- const rawCfg = stdbuf.join( '' ).replace( /[":\n\r]/g, '' )
11
+ const rawCfg = stdbuf.join( '' ).replace( /["\n\r]/g, '' )
12
12
  const keyVals = rawCfg.match(/\{(.*)\}/)[1].split(',')
13
13
 
14
14
  const lastLine = keyVals.length - 1
15
15
  console.log( "{" )
16
16
  for( let i = 0; i <= lastLine; i++ ) {
17
17
  const kv = keyVals[i].trim().split( ' ' )
18
- console.log( ` "${kv[0]}": "${kv[1]}"${(i < lastLine ? ',' : '')}` )
18
+ console.log( ` "${kv[0].replace( /:/, '')}": "${kv[1]}"${(i < lastLine ? ',' : '')}` )
19
19
  }
20
20
  console.log( "}" )
21
21
 
package/src/helmup CHANGED
@@ -7,6 +7,7 @@
7
7
  # to be turned into a cronjob to avoid having it run as soon as it gets
8
8
  # deployed.
9
9
  #
10
+ # printf "\nRUNNING LOCALLY\n" && sleep 2
10
11
  PLATFORM=(
11
12
  api-server
12
13
  emailer
@@ -236,13 +237,14 @@ function doInstall() {
236
237
  MUSEUM=$(<${OVERRIDE})
237
238
  printf "\n$YELO_WARN Local chartmuseum name override from ${SERVICE} to ${MUSEUM}\n"
238
239
  fi
239
- helm upgrade --install $SERVICE chartmuseum/$MUSEUM -f $SERVICE/values.yaml 2> /dev/null
240
+ helm upgrade --install $SERVICE chartmuseum/$MUSEUM -f $SERVICE/values.yaml
240
241
  if [ $? -ne 0 ];
241
242
  then
242
243
  cat<<NOTRUNNING
243
244
 
244
- $RED_ERROR The $SERVICE chart failed to upgrade or install. Is chartmuseum up
245
- and running on the proper port? Try firing it up with:
245
+ $RED_ERROR The $SERVICE chart failed to upgrade or install. There may be an
246
+ issue with the service's helm charts, or chartmuseum may not be
247
+ up and running? If the latter, try firing it up with:
246
248
 
247
249
  chartmuseum \\
248
250
  --port="8080" \\
package/src/overwhelm CHANGED
@@ -285,7 +285,8 @@ ahoy.forEach( ( dir ) => {
285
285
  if ( matchedCtx ) {
286
286
  console.log( `
287
287
 
288
- Your current context matches. Do you want to update credentials anyway?
288
+ Current context ${chalk.bold.green(currentCtx)} matches the desired
289
+ context. Do you want to update credentials anyway?
289
290
 
290
291
  ` )
291
292
  }