mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-30 08:03:55 +00:00
Upgrade resin-device-config to v3.0.0
This commit is contained in:
parent
9896de3c34
commit
3a839c947e
@ -211,7 +211,7 @@ limitations under the License.
|
|||||||
deviceConfig = require('resin-device-config');
|
deviceConfig = require('resin-device-config');
|
||||||
prettyjson = require('prettyjson');
|
prettyjson = require('prettyjson');
|
||||||
return resin.models.device.get(params.uuid).then(function(device) {
|
return resin.models.device.get(params.uuid).then(function(device) {
|
||||||
return resin.models.device.getManifestBySlug(device.device_type).get('options').then(form.run).then(_.partial(deviceConfig.get, device.uuid));
|
return resin.models.device.getManifestBySlug(device.device_type).get('options').then(form.run).then(_.partial(deviceConfig.getByDevice, device.uuid));
|
||||||
}).then(function(config) {
|
}).then(function(config) {
|
||||||
if (options.output != null) {
|
if (options.output != null) {
|
||||||
return fs.writeFileAsync(options.output, JSON.stringify(config));
|
return fs.writeFileAsync(options.output, JSON.stringify(config));
|
||||||
|
@ -246,7 +246,7 @@ exports.generate =
|
|||||||
resin.models.device.getManifestBySlug(device.device_type)
|
resin.models.device.getManifestBySlug(device.device_type)
|
||||||
.get('options')
|
.get('options')
|
||||||
.then(form.run)
|
.then(form.run)
|
||||||
.then(_.partial(deviceConfig.get, device.uuid))
|
.then(_.partial(deviceConfig.getByDevice, device.uuid))
|
||||||
.then (config) ->
|
.then (config) ->
|
||||||
if options.output?
|
if options.output?
|
||||||
return fs.writeFileAsync(options.output, JSON.stringify(config))
|
return fs.writeFileAsync(options.output, JSON.stringify(config))
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
"resin-cli-form": "^1.4.0",
|
"resin-cli-form": "^1.4.0",
|
||||||
"resin-cli-visuals": "^1.2.2",
|
"resin-cli-visuals": "^1.2.2",
|
||||||
"resin-config-json": "^1.0.0",
|
"resin-config-json": "^1.0.0",
|
||||||
"resin-device-config": "^2.6.1",
|
"resin-device-config": "^3.0.0",
|
||||||
"resin-device-init": "^2.0.0",
|
"resin-device-init": "^2.0.0",
|
||||||
"resin-image-manager": "^4.0.0",
|
"resin-image-manager": "^4.0.0",
|
||||||
"resin-pine": "^1.3.0",
|
"resin-pine": "^1.3.0",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user