From 8ef27f052534eed500c105e6ab295d970644705f Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Wed, 2 Dec 2015 16:28:32 -0400 Subject: [PATCH] Add helpful instructions after quickstart --- build/actions/wizard.js | 4 +++- lib/actions/wizard.coffee | 15 ++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/build/actions/wizard.js b/build/actions/wizard.js index 1c78380b..3fe12a0b 100644 --- a/build/actions/wizard.js +++ b/build/actions/wizard.js @@ -35,7 +35,9 @@ }).tap(patterns.awaitDevice).then(function(uuid) { return capitano.runAsync("device " + uuid); }).then(function() { - return console.log('Your device is ready, start pushing some code!'); + return resin.models.application.get(params.name); + }).then(function(application) { + return console.log("Your device is ready to start pushing some code!\n\nCheck our official documentation for more information:\n\n http://docs.resin.io/#/pages/introduction/introduction.md\n\nClone an example or go to an existing application directory and run:\n\n $ git remote add resin " + application.git_repository + "\n $ git push resin master"); }).nodeify(done); } }; diff --git a/lib/actions/wizard.coffee b/lib/actions/wizard.coffee index 4f4c2e3c..8485b896 100644 --- a/lib/actions/wizard.coffee +++ b/lib/actions/wizard.coffee @@ -38,5 +38,18 @@ exports.wizard = .then (uuid) -> return capitano.runAsync("device #{uuid}") .then -> - console.log('Your device is ready, start pushing some code!') + return resin.models.application.get(params.name) + .then (application) -> + console.log """ + Your device is ready to start pushing some code! + + Check our official documentation for more information: + + http://docs.resin.io/#/pages/introduction/introduction.md + + Clone an example or go to an existing application directory and run: + + $ git remote add resin #{application.git_repository} + $ git push resin master + """ .nodeify(done)