From a3d362423b4f684318f2a4c1b96e92afc4629537 Mon Sep 17 00:00:00 2001 From: Trent Mick Date: Tue, 8 Sep 2015 22:55:29 -0700 Subject: [PATCH] fixes for triton->tritonapi renaming --- lib/do_profiles.js | 6 +++--- lib/tritonapi.js | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/do_profiles.js b/lib/do_profiles.js index 6f1eca0..6df5d71 100644 --- a/lib/do_profiles.js +++ b/lib/do_profiles.js @@ -36,7 +36,7 @@ function do_profiles(subcmd, opts, args, cb) { var profiles; try { profiles = mod_config.loadAllProfiles({ - configDir: this.triton.config._configDir, + configDir: this.tritonapi.config._configDir, log: this.log }); } catch (e) { @@ -48,12 +48,12 @@ function do_profiles(subcmd, opts, args, cb) { var i; if (opts.json) { for (i = 0; i < profiles.length; i++) { - profiles[i].curr = (profiles[i].name === this.triton.profile.name); + profiles[i].curr = (profiles[i].name === this.tritonapi.profile.name); } common.jsonStream(profiles); } else { for (i = 0; i < profiles.length; i++) { - profiles[i].curr = (profiles[i].name === this.triton.profile.name + profiles[i].curr = (profiles[i].name === this.tritonapi.profile.name ? '*' : ''); } tabula(profiles, { diff --git a/lib/tritonapi.js b/lib/tritonapi.js index d1e0941..99cae9d 100644 --- a/lib/tritonapi.js +++ b/lib/tritonapi.js @@ -120,7 +120,8 @@ TritonApi.prototype._cloudapiFromProfile = return client; }; -Triton.prototype._cachePutJson = function _cachePutJson(key, obj, cb) { + +TritonApi.prototype._cachePutJson = function _cachePutJson(key, obj, cb) { var self = this; assert.string(this.cacheDir, 'this.cacheDir'); assert.string(key, 'key'); @@ -137,7 +138,7 @@ Triton.prototype._cachePutJson = function _cachePutJson(key, obj, cb) { }); }; -Triton.prototype._cacheGetJson = function _cacheGetJson(key, cb) { +TritonApi.prototype._cacheGetJson = function _cacheGetJson(key, cb) { var self = this; assert.string(this.cacheDir, 'this.cacheDir'); assert.string(key, 'key');