mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-30 08:03:55 +00:00
add the CS preamble to the generated files
This commit is contained in:
parent
7a0e8beb07
commit
553b96e48f
@ -101,7 +101,7 @@ limitations under the License.
|
|||||||
resin = require('../resin-sdk');
|
resin = require('../resin-sdk');
|
||||||
return resin.models.application.get(params.application).then(function(application) {
|
return resin.models.application.get(params.application).then(function(application) {
|
||||||
return Promise["try"](function() {
|
return Promise["try"](function() {
|
||||||
return options.uuid || resin.models.device.generateUUID();
|
return options.uuid || resin.models.device.generateUniqueKey();
|
||||||
}).then(function(uuid) {
|
}).then(function(uuid) {
|
||||||
console.info("Registering to " + application.app_name + ": " + uuid);
|
console.info("Registering to " + application.app_name + ": " + uuid);
|
||||||
return resin.models.device.register(application.app_name, uuid);
|
return resin.models.device.register(application.app_name, uuid);
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// Generated by CoffeeScript 1.12.2
|
||||||
(function() {
|
(function() {
|
||||||
var getSdk, opts, settings;
|
var getSdk, opts, settings;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user