From 0a7b83308a4c3fba775adba7ebbda1aeb60a08e0 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Tue, 3 Feb 2015 14:54:07 -0400 Subject: [PATCH] Add TODO on actions/keys about extracting ssh key chop --- lib/actions/keys.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/actions/keys.coffee b/lib/actions/keys.coffee index 8a6e6378..d5c4592a 100644 --- a/lib/actions/keys.coffee +++ b/lib/actions/keys.coffee @@ -36,6 +36,8 @@ exports.info = action: (params, options, done) -> resin.models.key.get params.id, (error, key) -> return done(error) if error? + + # TODO: Move this chop functionality to resin.models.key key.public_key = '\n' + _.str.chop(key.public_key, resin.settings.get('sshKeyWidth')).join('\n') console.log(visuals.widgets.table.vertical(key, [ 'id', 'title', 'public_key' ])) return done()