Use os.install in resin-write

This commit is contained in:
Juan Cruz Viotti 2015-02-10 13:09:05 -04:00
parent 2f804d5d16
commit 448c515f13

View File

@ -3,12 +3,12 @@
// http://coffeescript.org/documentation/docs/register.html
require('coffee-script/register');
var device = require('../lib/actions/device.coffee');
var os = require('../lib/actions/os.coffee');
var errors = require('../lib/errors');
// TODO: Do some error handling when image or device are incorrect
device.init.action({
os.install.action({
image: process.argv[2],
device: process.argv[3]
}, {