mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-21 06:33:28 +00:00
Improve awaitDevice success message
This commit is contained in:
parent
474635401a
commit
bee523828a
@ -176,7 +176,7 @@ limitations under the License.
|
|||||||
return resin.models.device.isOnline(uuid).then(function(isOnline) {
|
return resin.models.device.isOnline(uuid).then(function(isOnline) {
|
||||||
if (isOnline) {
|
if (isOnline) {
|
||||||
spinner.stop();
|
spinner.stop();
|
||||||
console.info("Device became online: " + deviceName);
|
console.info("The device **" + deviceName + "** is online!");
|
||||||
} else {
|
} else {
|
||||||
spinner.start();
|
spinner.start();
|
||||||
return Promise.delay(3000).then(poll);
|
return Promise.delay(3000).then(poll);
|
||||||
|
@ -135,7 +135,7 @@ exports.awaitDevice = (uuid) ->
|
|||||||
resin.models.device.isOnline(uuid).then (isOnline) ->
|
resin.models.device.isOnline(uuid).then (isOnline) ->
|
||||||
if isOnline
|
if isOnline
|
||||||
spinner.stop()
|
spinner.stop()
|
||||||
console.info("Device became online: #{deviceName}")
|
console.info("The device **#{deviceName}** is online!")
|
||||||
return
|
return
|
||||||
else
|
else
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user