mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-18 18:56:25 +00:00
Merge pull request #330 from resin-io/upgrade/device-config
Upgrade resin-device-config to v3.0.0
This commit is contained in:
commit
ca6e715bfa
@ -211,7 +211,7 @@ limitations under the License.
|
||||
deviceConfig = require('resin-device-config');
|
||||
prettyjson = require('prettyjson');
|
||||
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) {
|
||||
if (options.output != null) {
|
||||
return fs.writeFileAsync(options.output, JSON.stringify(config));
|
||||
|
@ -246,7 +246,7 @@ exports.generate =
|
||||
resin.models.device.getManifestBySlug(device.device_type)
|
||||
.get('options')
|
||||
.then(form.run)
|
||||
.then(_.partial(deviceConfig.get, device.uuid))
|
||||
.then(_.partial(deviceConfig.getByDevice, device.uuid))
|
||||
.then (config) ->
|
||||
if options.output?
|
||||
return fs.writeFileAsync(options.output, JSON.stringify(config))
|
||||
|
@ -48,7 +48,7 @@
|
||||
"resin-cli-form": "^1.4.0",
|
||||
"resin-cli-visuals": "^1.2.2",
|
||||
"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-image-manager": "^4.0.0",
|
||||
"resin-pine": "^1.3.0",
|
||||
|
Loading…
Reference in New Issue
Block a user