Add helpful instructions after quickstart

This commit is contained in:
Juan Cruz Viotti 2015-12-02 16:28:32 -04:00
parent 0f8d6a98e3
commit 8ef27f0525
2 changed files with 17 additions and 2 deletions

View File

@ -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);
}
};

View File

@ -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)