Merge pull request #330 from resin-io/upgrade/device-config

Upgrade resin-device-config to v3.0.0
This commit is contained in:
Juan Cruz Viotti 2016-03-21 15:05:28 -04:00
commit ca6e715bfa
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

@ -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",