@fishawack/lab-env 4.6.0 → 4.8.0

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.
package/CHANGELOG.md CHANGED
@@ -1,9 +1,16 @@
1
1
  ## Changelog
2
2
 
3
+ ### 4.8.0 (2023-01-20)
4
+ * [Feature] Added newly setup AWS accounts to the client prompts on `fw provision`
5
+
6
+ ### 4.7.0 (2022-12-20)
7
+ * [Feature] --debug flag that shows extra information about running commands
8
+ * [Feature] Added newly setup AWS accounts to the client prompts on `fw provision`
9
+
3
10
  ### 4.6.0 (2022-11-30)
4
- * [Fix] Drupal now uses httpd so that htaccess files are respected
5
- * [Fix] No longer mount env file into drupal php env container as env variables
6
- * [Fix] Drupal now has wordpress upload limits of 500M
11
+ * [Bug] Drupal now uses httpd so that htaccess files are respected
12
+ * [Bug] No longer mount env file into drupal php env container as env variables
13
+ * [Bug] Drupal now has wordpress upload limits of 500M
7
14
 
8
15
  ### 4.5.0 (2022-11-21)
9
16
  * [Feature] Preset choice on `fw diagnose` now gives commands suitable to option chosen
package/cli.js CHANGED
@@ -25,6 +25,10 @@ const args = hideBin(process.argv);
25
25
  .scriptName("fw")
26
26
  .parserConfiguration({
27
27
  'unknown-options-as-args': true
28
+ })
29
+ .option('debug', {
30
+ global: true,
31
+ description: `Show extra information to help debug issues`
28
32
  });
29
33
 
30
34
  // Repo commands
@@ -6,7 +6,7 @@ module.exports.iam = require("./iam.js");
6
6
 
7
7
  module.exports.slug = (repo, client, branch) => s3Safe(`${branch}-${repo}-${client}`);
8
8
 
9
- module.exports.clients = ['fishawack', 'abbvie', 'sanofigenzyme', 'gsk', 'janssen', 'astrazeneca', 'ptc', 'jazz', 'pfizer', 'heron', 'novartis', 'training', 'merck', 'acadia', 'travere', 'roche', 'utc', 'bayer', 'alcon', 'uhc', 'chiesi', '3m', 'sarepta', 'ipsen', 'novocure'];
9
+ module.exports.clients = ['fishawack', 'abbvie', 'sanofigenzyme', 'gsk', 'janssen', 'astrazeneca', 'ptc', 'jazz', 'pfizer', 'heron', 'novartis', 'training', 'merck', 'acadia', 'travere', 'roche', 'utc', 'bayer', 'alcon', 'uhc', 'chiesi', '3m', 'sarepta', 'ipsen', 'novocure', 'anthem', 'kyowakirin'];
10
10
 
11
11
  module.exports.static = async (name, account, tags = [], credentials = []) => {
12
12
  let s3 = await module.exports.s3.createS3Bucket(name, account, tags);
package/globals.js CHANGED
@@ -137,12 +137,16 @@ if(platform === 'laravel'){
137
137
  }
138
138
 
139
139
  try{
140
- services = execSync(`${docker} ps --services --filter "status=running" 2>/dev/null`, {encoding: 'utf8'});
140
+ services = execSync(`${docker} ps --services --filter "status=running"`, {encoding: 'utf8', stdio: 'pipe'});
141
141
  running = services.trim().length;
142
142
  exec = `exec ${process.env.CI_BUILD_ID ? '-T' : ''}`;
143
143
  method = running ? exec : 'run --rm --service-ports';
144
144
  run = `${method} core bash -l`;
145
- } catch(e){}
145
+ } catch(e){
146
+ if(args.find(d => d === '--debug')){
147
+ console.log(utilities.colorize(e.stderr, 'error'));
148
+ }
149
+ }
146
150
 
147
151
  // Always allow commands that don't require a repository through
148
152
  if(args[0] !== 'diag' && args[0] !== 'diagnose' && args[0] !== 'origin' && args[0] !== '--version' && args[0] !== '--help' && args[0] !== 'new' && args[0] !== 'key' && args[0] !== 'dekey'){
@@ -155,7 +159,7 @@ if(args[0] !== 'diag' && args[0] !== 'diagnose' && args[0] !== 'origin' && args[
155
159
  console.log(`${utilities.colorize(`@fishawack/lab-env`, 'title')} diagnosis is ${utilities.colorize(`outdated`, 'warning')}.\n\nRun ${utilities.colorize(`fw diagnose`, 'success')} to reconfigure.`);
156
160
  // Stop here if docker process not running
157
161
  } else if(!services) {
158
- console.log(`${utilities.colorize(`Docker`, 'info')} does not appear to be running...`);
162
+ console.log(`${utilities.colorize(`Docker`, 'info')} does not appear to be running...\n\nRun ${utilities.colorize(`fw --debug`, 'success')} for more information`);
159
163
  process.exit();
160
164
  }
161
165
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fishawack/lab-env",
3
- "version": "4.6.0",
3
+ "version": "4.8.0",
4
4
  "description": "Docker manager for FW",
5
5
  "main": "cli.js",
6
6
  "scripts": {