Add Resin.io ASCII art in login

This commit is contained in:
Juan Cruz Viotti 2016-01-12 10:23:46 -04:00
parent 9b052c9aa5
commit 86cac606e4
2 changed files with 12 additions and 2 deletions

View File

@ -82,7 +82,8 @@ limitations under the License.
}); });
}; };
return resin.settings.get('resinUrl').then(function(resinUrl) { return resin.settings.get('resinUrl').then(function(resinUrl) {
console.log("Logging in to " + resinUrl); console.log('______ _ _\n| ___ \\ (_) (_)\n| |_/ /___ ___ _ _ __ _ ___\n| // _ \\/ __| | \'_ \\ | |/ _ \\\n| |\\ \\ __/\\__ \\ | | | |_| | (_) |\n\\_| \\_\\___||___/_|_| |_(_)_|\\___/');
console.log("\nLogging in to " + resinUrl);
return login(options); return login(options);
}).then(resin.auth.whoami).tap(function(username) { }).then(resin.auth.whoami).tap(function(username) {
console.info("Successfully logged in as: " + username); console.info("Successfully logged in as: " + username);

View File

@ -99,7 +99,16 @@ exports.login =
return login(options) return login(options)
resin.settings.get('resinUrl').then (resinUrl) -> resin.settings.get('resinUrl').then (resinUrl) ->
console.log("Logging in to #{resinUrl}") console.log '''
______ _ _
| ___ \\ (_) (_)
| |_/ /___ ___ _ _ __ _ ___
| // _ \\/ __| | '_ \\ | |/ _ \\
| |\\ \\ __/\\__ \\ | | | |_| | (_) |
\\_| \\_\\___||___/_|_| |_(_)_|\\___/
'''
console.log("\nLogging in to #{resinUrl}")
return login(options) return login(options)
.then(resin.auth.whoami) .then(resin.auth.whoami)
.tap (username) -> .tap (username) ->