Skip to content

Commit cd3a96d

Browse files
Merge pull request #87 from colonelpopcorn/task/fix-build
Prep for 1.0.2 release.
2 parents 1537052 + 5d4e44e commit cd3a96d

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

lib/virtualbox.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -303,26 +303,26 @@ function clone(vmname, clonevmname, /*optional*/ snapshot, callback) {
303303
}
304304

305305
var storage = {
306-
addCtl: function (options, callback){
307-
var vm = options.vm || options.name || options.vmname || options.title,
308-
device_name = options.perhiperal_name || "IDE",
309-
type = options.type || "ide";
310-
logging.info('Adding "%s" controller named "%s" to %s', type, device_name,vm);
311-
var cmd = ['storagectl', vm, '--name', device_name, "--add", type];
312-
vboxmanage(cmd, callback);
313-
},
314-
attach: function (options, callback){
315-
var vm = options.vm || options.name || options.vmname || options.title,
316-
device_name = options.perhiperal_name || "IDE",
317-
port = options.port || "0",
318-
device = options.device || "0",
319-
type = options.type || "dvddrive",
320-
medium = options.medium;
321-
logging.info('Mounting "%s" to controller named "%s" on %s', medium, device_name,vm);
322-
var cmd = ['storageattach', vm, '--storagectl', device_name, "--port", port, "--device", device, "--type", type, "--medium", medium];
323-
vboxmanage(cmd, callback);
324-
}
325-
}
306+
addCtl: function (options, callback) {
307+
var vm = options.vm || options.name || options.vmname || options.title,
308+
device_name = options.perhiperal_name || "IDE",
309+
type = options.type || "ide";
310+
logging.info('Adding "%s" controller named "%s" to %s', type, device_name, vm);
311+
var cmd = ['storagectl', vm, '--name', device_name, "--add", type];
312+
vboxmanage(cmd, callback);
313+
},
314+
attach: function (options, callback) {
315+
var vm = options.vm || options.name || options.vmname || options.title,
316+
device_name = options.perhiperal_name || "IDE",
317+
port = options.port || "0",
318+
device = options.device || "0",
319+
type = options.type || "dvddrive",
320+
medium = options.medium;
321+
logging.info('Mounting "%s" to controller named "%s" on %s', medium, device_name, vm);
322+
var cmd = ['storageattach', vm, '--storagectl', device_name, "--port", port, "--device", device, "--type", type, "--medium", medium];
323+
vboxmanage(cmd, callback);
324+
}
325+
};
326326

327327
function isRunning(vmname, callback) {
328328
vboxmanage(['list', 'runningvms'], function (error, stdout) {

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "virtualbox",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "A library to interact with VirtualBox.",
55
"author": "Azer Koculu <[email protected]>",
66
"license": "MIT",

0 commit comments

Comments
 (0)