from:
triton account: error: DEPTH_ZERO_SELF_SIGNED_CERT
to this:
triton account: error (SelfSignedCert): could not access CloudAPI https://10.88.88.3 because it uses a self-signed TLS certificate and your current profile is not configured for insecure access: DEPTH_ZERO_SELF_SIGNED_CERT
Profile/CloudAPI top-level CLI options are now applied to the current
profile. Also clean up loading of the 'env' profile a bit so that
special casing of that is more hidden in "config.js".
Also add support for the TRITON_URL, TRITON_TLS_INSECURE and
TRITON_ACCOUNT envvars. (I didn't add TRITON_KEY_ID because a coming
change will do better than that.)
Fixes#28, #24.
E.g.:
$ triton -v inst 1c7f40f6-a253-49f3-94d6-8f0656440696 2>&1 | bunyan
[2015-08-31T17:57:02.682Z] INFO: triton/24726 on danger0.local (/Users/trentm/joy/node-triton/lib/cli.js:188): failed to make dir /Users/trentm/.triton (err.code=EEXIST)
Error: EEXIST, file already exists '/Users/trentm/.triton'
at Object.fs.mkdirSync (fs.js:654:18)
at /Users/trentm/joy/node-triton/lib/cli.js:186:24
at Array.forEach (native)
at CLI.triton (/Users/trentm/joy/node-triton/lib/cli.js:184:29)
at CLI.do_instance (/Users/trentm/joy/node-triton/lib/do_instance.js:16:9)
at CLI.dispatch (/Users/trentm/joy/node-triton/node_modules/cmdln/lib/cmdln.js:664:13)
at /Users/trentm/joy/node-triton/node_modules/cmdln/lib/cmdln.js:425:18
at CLI.init (/Users/trentm/joy/node-triton/node_modules/cmdln/lib/cmdln.js:477:5)
at CLI.init (/Users/trentm/joy/node-triton/lib/cli.js:221:26)
at CLI.main (/Users/trentm/joy/node-triton/node_modules/cmdln/lib/cmdln.js:404:10)
[2015-08-31T17:57:02.684Z] INFO: triton/24726 on danger0.local (/Users/trentm/joy/node-triton/lib/cli.js:188): failed to make dir /Users/trentm/.triton/cache (err.code=EEXIST)
Error: EEXIST, file already exists '/Users/trentm/.triton/cache'
at Object.fs.mkdirSync (fs.js:654:18)
at /Users/trentm/joy/node-triton/lib/cli.js:186:24
at Array.forEach (native)
at CLI.triton (/Users/trentm/joy/node-triton/lib/cli.js:184:29)
at CLI.do_instance (/Users/trentm/joy/node-triton/lib/do_instance.js:16:9)
at CLI.dispatch (/Users/trentm/joy/node-triton/node_modules/cmdln/lib/cmdln.js:664:13)
at /Users/trentm/joy/node-triton/node_modules/cmdln/lib/cmdln.js:425:18
at CLI.init (/Users/trentm/joy/node-triton/node_modules/cmdln/lib/cmdln.js:477:5)
at CLI.init (/Users/trentm/joy/node-triton/lib/cli.js:221:26)
at CLI.main (/Users/trentm/joy/node-triton/node_modules/cmdln/lib/cmdln.js:404:10)
...